Solr
  1. Solr
  2. SOLR-636

admin page schema link fails for example multicore config

    Details

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

      linux x86_64 rhel ibm-java-6 prepackaged jetty
      solr snapshot 7-15-2008

      Description

      If I try to view the schema.xml for a single core, using the gui link:

      http://localhost:8983/solr/core1/admin/file/?file=schema.xml

      I get instead:

      HTTP ERROR: 404

      NOT_FOUND

      RequestURI=/solr/admin/file/

      Powered by Jetty://

      1. SOLR-636.patch
        6 kB
        Lars Kotthoff
      2. SOLR-636.patch
        6 kB
        Lars Kotthoff
      3. SOLR-636.patch
        6 kB
        Lars Kotthoff

        Issue Links

          Activity

          Hide
          Lars Kotthoff added a comment -

          This occurs because the ShowFileRequestHandler isn't enabled by default in the multicore example configurations (showing the config fails in the same way).

          I'm attaching a patch which changes the multicore example configurations to enable all admin handlers through AdminHandlers. The patch also removes some parameters from the <admin> configuration element which appear to be used only in deprecated stuff.

          The patch furthermore changes index.jsp to check for the existence of the ShowFileRequestHandler or the all-in-one AdminHandlers before displaying the links to get schema and config. Also the deprecated getSchemaFile()/getConfigFile() methods are changed to getSchemaResource()/getConfigResource().

          I've done a quick search for more solrconfig.xml with deprecated stuff in them and updated the ones in solr-ruby, but not the ones used in various tests. This should probably be a separate issue?

          Show
          Lars Kotthoff added a comment - This occurs because the ShowFileRequestHandler isn't enabled by default in the multicore example configurations (showing the config fails in the same way). I'm attaching a patch which changes the multicore example configurations to enable all admin handlers through AdminHandlers. The patch also removes some parameters from the <admin> configuration element which appear to be used only in deprecated stuff. The patch furthermore changes index.jsp to check for the existence of the ShowFileRequestHandler or the all-in-one AdminHandlers before displaying the links to get schema and config. Also the deprecated getSchemaFile()/getConfigFile() methods are changed to getSchemaResource()/getConfigResource(). I've done a quick search for more solrconfig.xml with deprecated stuff in them and updated the ones in solr-ruby, but not the ones used in various tests. This should probably be a separate issue?
          Hide
          Hoss Man added a comment -

          The root issue here is SOLR-493 ... those configs should work, with those legacy <admin> blocks. the links need to exist on the admin page (and work) even if the ShowFileHandler isn't explicitly registered in order to be backwards compatible.

          That said: it probably makes still makes sense to changes the multicore configs to make them more "modern" but we should try to keep them as simple as possible .

          Show
          Hoss Man added a comment - The root issue here is SOLR-493 ... those configs should work, with those legacy <admin> blocks. the links need to exist on the admin page (and work) even if the ShowFileHandler isn't explicitly registered in order to be backwards compatible. That said: it probably makes still makes sense to changes the multicore configs to make them more "modern" but we should try to keep them as simple as possible .
          Hide
          Lars Kotthoff added a comment -

          Attaching new patch which doesn't check for the existence of the handler anymore before displaying the file download links.

          The changes to the various solrconfig.xml files are mostly deletions, so I think I can safely say that this makes them simpler

          Show
          Lars Kotthoff added a comment - Attaching new patch which doesn't check for the existence of the handler anymore before displaying the file download links. The changes to the various solrconfig.xml files are mostly deletions, so I think I can safely say that this makes them simpler
          Hide
          Lars Kotthoff added a comment -

          Some other changes sneaked into the last patch, attaching corrected version.

          Show
          Lars Kotthoff added a comment - Some other changes sneaked into the last patch, attaching corrected version.
          Hide
          Otis Gospodnetic added a comment -

          Should this go into 1.3?
          (don't use multicore at the moment, so not sure how big of a problem this is)

          Show
          Otis Gospodnetic added a comment - Should this go into 1.3? (don't use multicore at the moment, so not sure how big of a problem this is)
          Hide
          Hoss Man added a comment -

          Committed revision 683415.

          ...made a small tweak to index.jsp to better deal with getSchemaResource() or getConfigResource() being null (which can happen if the Configs are loaded dynamicly from an InputStream instead of a filename)

          Show
          Hoss Man added a comment - Committed revision 683415. ...made a small tweak to index.jsp to better deal with getSchemaResource() or getConfigResource() being null (which can happen if the Configs are loaded dynamicly from an InputStream instead of a filename)

            People

            • Assignee:
              Hoss Man
              Reporter:
              Jerry Quinn
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development