Solr
  1. Solr
  2. SOLR-2022

request handler paths ending in "/" don't work with Tomcat 7

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.1.0, 1.2, 1.3, 1.4, 1.4.1, 1.4.2, 1.5, 3.1, 3.2, 4.0-ALPHA
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      As originally reported in this thread...

      http://search.lucidimagination.com/search/document/9c09498631b7afbb/problems_running_on_tomcat

      Tomcat 7 has made changes in how URLs are resolved that result in the requests with paths that end in a "/" character being given to the SolrDispatchFilter with "index.jsp" appended to them. This results in SolrDispatchFilter being unable to correctly identify some situations when a request should be processed by a request handler based on the name registered (ie: "/update/csv/" is seen as "update/csv/index.jsp" so as a result the handler registered to "/update/csv/ is not consulted). The problem manifests as a generic 404 (because the request is propagated to the underlying JspServlet which can not find these paths and jsps in the war)

      This is most notable in a basic solr install when clicking some URLs that are linked to from the main admin page (see comments below) but this problem can also affect any situation where a client is attempting to access a request handler (or "/select/") using a path ending in "/". The workaround is to remove hte trailing "/" character

        Issue Links

          Activity

          Jan Høydahl made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Won't Fix [ 2 ]
          Hoss Man made changes -
          Affects Version/s 3.2 [ 12316172 ]
          Affects Version/s Next [ 12315093 ]
          Hoss Man made changes -
          Link This issue is duplicated by SOLR-2262 [ SOLR-2262 ]
          Hoss Man made changes -
          Description Based on this thread, users seem to have problems with Solr on tomcat 7 that do not exist on tomcat 6...

          http://search.lucidimagination.com/search/document/9c09498631b7afbb/problems_running_on_tomcat
          As originally reported in this thread...

          http://search.lucidimagination.com/search/document/9c09498631b7afbb/problems_running_on_tomcat

          Tomcat 7 has made changes in how URLs are resolved that result in the requests with paths that end in a "/" character being given to the SolrDispatchFilter with "index.jsp" appended to them. This results in SolrDispatchFilter being unable to correctly identify some situations when a request should be processed by a request handler based on the name registered (ie: "/update/csv/" is seen as "update/csv/index.jsp" so as a result the handler registered to "/update/csv/ is not consulted). The problem manifests as a generic 404 (because the request is propagated to the underlying JspServlet which can not find these paths and jsps in the war)

          This is most notable in a basic solr install when clicking some URLs that are linked to from the main admin page (see comments below) but this problem can also affect any situation where a client is attempting to access a request handler (or "/select/") using a path ending in "/". The workaround is to remove hte trailing "/" character
          Hoss Man made changes -
          Field Original Value New Value
          Summary Annecdotal evidence that Solr has problems running on Tomcat 7 request handler paths ending in "/" don't work with Tomcat 7
          Affects Version/s 1.4 [ 12313351 ]
          Affects Version/s 1.3 [ 12312486 ]
          Affects Version/s 1.2 [ 12312235 ]
          Affects Version/s 1.1.0 [ 12312234 ]
          Affects Version/s 1.4.2 [ 12315231 ]
          Affects Version/s 1.5 [ 12313566 ]
          Affects Version/s 3.1 [ 12314371 ]
          Affects Version/s 4.0 [ 12314992 ]
          Affects Version/s Next [ 12315093 ]
          Description Based on this thread, users seem to have problems with Solr on tomcat 7 that do not exist on tomcat 6...

          http://search.lucidimagination.com/search/document/9c09498631b7afbb/problems_running_on_tomcat

          based on the descri[ption of hte problem, it seems to be related to the way links of the admin screen work (possibly due to changes in how tomcat prioritizes SolrDispatchFilter vs other JSP based links?)
          Based on this thread, users seem to have problems with Solr on tomcat 7 that do not exist on tomcat 6...

          http://search.lucidimagination.com/search/document/9c09498631b7afbb/problems_running_on_tomcat
          Hoss Man created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              Hoss Man
            • Votes:
              3 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development