Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-740

legacy gettableFiles support not working in 1.3.0-RC1

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.3
    • Component/s: None
    • Labels:
      None

      Description

      i haven't had a chance to drill into this yet to figure out what's going wrong (i know we already had an issue about this that was fixed), but testing the example configs from 1.2 against 1.3rc1 i'm seeing the following behavior...

      1. the following message is logged...
        Aug 29, 2008 12:41:31 PM org.apache.solr.core.SolrCore initDeprecatedSupport
        WARNING: adding ShowFileRequestHandler with hidden files: [.SVN, XSLT, SYNONYMS.TXT, PROTWORDS.TXT, STOPWORDS.TXT, SCRIPTS.CONF]
        

        (Note: that is not the list of files configured in the 1.2 example <gettableFiles>, it's the list of all files in the solr/conf dir ... and for some reason they are all uppercased)

      2. links on the admin screen for the schema and config files point to...
        file/?file=schema.xml   ...ie...  http://localhost:8983/solr/admin/file/?file=schema.xml
        file/?file=solrconfig.xml  ...ie... http://localhost:8983/solr/admin/file/?file=solrconfig.xml
        
      3. those links don't work (404, nothing seems to be logged by Solr)
      4. the "legacy" form of the urls using get-files.jsp (which people might have bookmarked) do in fact work...
        http://localhost:8983/solr/admin/get-file.jsp?file=solrconfig.xml
        http://localhost:8983/solr/admin/get-file.jsp?file=schema.xml
        

        ...but based on the whitespace at the top of the files, i suspect that is relaly the JSP getting used, not the ShowFileRequestHandler

      To reproduce:

      1. checkout the the solr 1.2 tag.
      2. copy the 1.3-rc1 war on top of the 1.2 example/webapps/solr.war
      3. run the 1.2 example code as normal (java -jar start.jar)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hossman Chris M. Hostetter
                Reporter:
                hossman Chris M. Hostetter
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: