Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-9889

Incorrect reference to vm in Sherlock definition - fails after 7 days

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.0
    • Component/s: Search
    • Labels:
      None

      Description

      The source generating the Sherlock search plugin has an incorrect reference for the update URL, viz.:

      http://qa1-za.sakaiproject.org/portal/directtool/3641fd2f-5a61-4954-8021-8a990a2d2c86/sakai.scr

      in

      <SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
      <os:ShortName>Sakai QA Network qa1-za (svn tags/sakai_2-4-0_QA_013) using MySQL/InnoDB: Chat Test</os:ShortName>
      <os:Description>Sakai Search Engine for Site Chat Test</os:Description>
      <os:InputEncoding>UTF-8</os:InputEncoding>
      <os:Image width="16" height="16">(long value removed so it will wrap properly)</os:Image>
      <UpdateInterval>7</UpdateInterval>
      <UpdateUrl>http://qa1-za.sakaiproject.org/portal/directtool/3641fd2f-5a61-4954-8021-8a990a2d2c86/sakai.scr</UpdateUrl>
      <IconUpdateUrl>http://qa1-za.sakaiproject.org/portal/directtool/3641fd2f-5a61-4954-8021-8a990a2d2c86/sakai.gif</IconUpdateUrl>
      <os:Url type="text/html" method="GET" template="http://qa1-za.sakaiproject.org/portal/directtool/3641fd2f-5a61-4954-8021-8a990a2d2c86/index?search=

      {searchTerms}

      &sourceid=Mozilla-search&panel=Main" />
      </SearchPlugin>

      There is a vm file called 'sakai.src.vm' (src rather than scr). Looks like the browser wants to check for an update every 7 days, but is directed to the wrong URL to do so, so this will generate periodic bug reports

      Source shows:

      grep -r "sakai.scr" * | grep -v svn

      search-tool/tool/src/java/org/sakaiproject/search/tool/SherlockSearchBeanImpl.java: private static final String UPDATE_URL = "/sakai.scr";

      grep -r "sakai.src" * | grep -v svn

      search-tool/tool/src/java/org/sakaiproject/search/tool/ControllerServlet2.java: contentTypes.put("sakai.src", "application/opensearchdescription+xml" );
      search-tool/tool/src/webapp/scripts/search.js: baseURL+"/sakai.src",

      org.sakaiproject.tool.api.ToolException: Search Failed
      at org.sakaiproject.portal.charon.CharonPortal.forwardTool(CharonPortal.java:1645)
      caused by: javax.servlet.ServletException: Search Failed
      at org.sakaiproject.search.tool.ControllerServlet2.doGet(ControllerServlet2.java:141)
      caused by: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/WEB-INF/vm/sakai.scr.vm'
      at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:458)
      at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:341)
      at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:831)
      at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:440)
      at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:419)
      at org.sakaiproject.search.tool.ControllerServlet2.execute(ControllerServlet2.java:256)
      at org.sakaiproject.search.tool.ControllerServlet2.doGet(ControllerServlet2.java:141)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:501)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:359)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:339)
      at org.sakaiproject.portal.charon.CharonPortal.forwardTool(CharonPortal.java:1645)
      at org.sakaiproject.portal.charon.CharonPortal.doTool(CharonPortal.java:1563)
      at org.sakaiproject.portal.charon.CharonPortal.doGet(CharonPortal.java:380)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:532)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
      at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
      at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
      at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
      at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      at java.lang.Thread.run(Thread.java:595)

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                smarquard Stephen Marquard
                Reporter:
                smarquard Stephen Marquard
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration