Solr
  1. Solr
  2. SOLR-4045

SOLR admin page returns HTTP 404 on core names containing a '.' (dot)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1
    • Component/s: web gui
    • Labels:
    • Environment:

      Linux, Ubuntu 12.04

      Description

      When SOLR is configured in multicore mode, cores with '.' (dot) in their names are inaccessible via the admin web guy. (localhost:8983/solr). The page shows an alert with the message (test.test was my core name):

      404 Not Found get #/test.test

      To replicate: start solr in multicore mode, go to "localhost:8983/solr", via core admin create a new core "test.test", then refresh the page. "test.test" will show under the menu at the bottom left. Clicking on it causes the message, while no core menu appears.

      1. SOLR-4045.patch
        5 kB
        Stefan Matheis (steffkes)
      2. SOLR-4045.patch
        5 kB
        Stefan Matheis (steffkes)

        Activity

        Hide
        Stefan Matheis (steffkes) added a comment -

        Alessandro Tommasi would you mind verifying this Patch? Just to be sure that i didn't miss one Controller.

        While changing all those Files, i already that it would be good to have one central place holding kind of a core-pattern .. will try to change that as well, if that patch is okay

        Show
        Stefan Matheis (steffkes) added a comment - Alessandro Tommasi would you mind verifying this Patch? Just to be sure that i didn't miss one Controller. While changing all those Files, i already that it would be good to have one central place holding kind of a core-pattern .. will try to change that as well, if that patch is okay
        Hide
        Alessandro Tommasi added a comment -

        Thank you for your prompt action on this. I have tried the patch, but patching my existing 4.0 installation (as downloaded from the website) was a little troublesome, as those files that the patch indicated as being in:

        solr/webapp/web/js/scripts

        are actually under:

        solr-webapp/webapp/js/scripts

        in my installation. Replacing the paths in the patch and applying it, however, worked, and the web gui seems to work w/o issues. (I had however to open the web gui in another browser, as mine seemed to have cached all those js and refused to reload them unless I refreshed them one by one).

        Show
        Alessandro Tommasi added a comment - Thank you for your prompt action on this. I have tried the patch, but patching my existing 4.0 installation (as downloaded from the website) was a little troublesome, as those files that the patch indicated as being in: solr/webapp/web/js/scripts are actually under: solr-webapp/webapp/js/scripts in my installation. Replacing the paths in the patch and applying it, however, worked, and the web gui seems to work w/o issues. (I had however to open the web gui in another browser, as mine seemed to have cached all those js and refused to reload them unless I refreshed them one by one).
        Hide
        Stefan Matheis (steffkes) added a comment -

        as those files that the patch indicated as being in:
        solr/webapp/web/js/scripts
        are actually under:
        solr-webapp/webapp/js/scripts

        in solr/webapp/web the source-files are located, where as in example/solr-webapp/webapp your running instance is holding their copies of the source-files

        But anyway, fine that it works – will work on the second version with a global corename-pattern to make these changes in the feature a bit easier

        Thanks Allesandro!

        Show
        Stefan Matheis (steffkes) added a comment - as those files that the patch indicated as being in: solr/webapp/web/js/scripts are actually under: solr-webapp/webapp/js/scripts in solr/webapp/web the source-files are located, where as in example/solr-webapp/webapp your running instance is holding their copies of the source-files But anyway, fine that it works – will work on the second version with a global corename-pattern to make these changes in the feature a bit easier Thanks Allesandro!
        Hide
        Stefan Matheis (steffkes) added a comment -

        Updated Patch includes a more generic solution

        Show
        Stefan Matheis (steffkes) added a comment - Updated Patch includes a more generic solution
        Hide
        Stefan Matheis (steffkes) added a comment -

        trunk: r1429259
        branch_4x: r1429260

        Show
        Stefan Matheis (steffkes) added a comment - trunk: r1429259 branch_4x: r1429260
        Hide
        Commit Tag Bot added a comment -

        [branch_4x commit] Stefan Matheis
        http://svn.apache.org/viewvc?view=revision&revision=1429260

        SOLR-4045: SOLR admin page returns HTTP 404 on core names containing a '.' (dot) (merge r1429259)

        Show
        Commit Tag Bot added a comment - [branch_4x commit] Stefan Matheis http://svn.apache.org/viewvc?view=revision&revision=1429260 SOLR-4045 : SOLR admin page returns HTTP 404 on core names containing a '.' (dot) (merge r1429259)
        Hide
        Commit Tag Bot added a comment -

        [trunk commit] Stefan Matheis
        http://svn.apache.org/viewvc?view=revision&revision=1429259

        SOLR-4045: SOLR admin page returns HTTP 404 on core names containing a '.' (dot)

        Show
        Commit Tag Bot added a comment - [trunk commit] Stefan Matheis http://svn.apache.org/viewvc?view=revision&revision=1429259 SOLR-4045 : SOLR admin page returns HTTP 404 on core names containing a '.' (dot)

          People

          • Assignee:
            Stefan Matheis (steffkes)
            Reporter:
            Alessandro Tommasi
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development