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

New Admin UI Query does not URL-encode the query produced in the URL box

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.4.2
    • 7.7, 8.0
    • Admin UI
    • None

    Description

      We found that the new Admin UI (we're using 6.4.2) properly submits a query with non-alphanumeric for searching, but that the clickable URL for that query does not contain URL-encoded characters. If using that URL to execute the query later, an incorrect query is executed.

      If you revert back to using the deprecated Admin UI, it works fine.

      To reproduce:

      Open the Query form in the Admin UI, and enter a query string containing punctuation characters, e.g. "http://someuri#123", and click on debugQuery.

      The debug shows the correct query in the raw query string.

      "\"http://someuri#123\""

      The URL produced for the query however is not properly URL-encoded:

      http://.../solr/collectionX/select?debugQuery=on&df=body&indent=on&q=%22http://someuri#123"&wt=json
      

      If you click on this, the browser munges the query, and depending on the query and query parser, you may get a syntax error, the query string may get cut off, or you may get different results.

      Drop back to the old deprecated UI and do the same thing, and the URL produced is fully encoded:

      http://.../solr/shardX/select?q=%22http%3A%2F%2Fsomeuri%23123%22&df=body&wt=json&indent=true&debugQuery=true
      

      Attachments

        Issue Links

          Activity

            People

              janhoy Jan Høydahl
              ecario Elaine Cario
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: