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

/query page generates http link that loads incorrectly-encoded url

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Admin UI

    Description

      i'm trying to query documents that contain both "Covers for Modular Outdoor Club Chairs" and "Resort Club & Ottoman Set" in my "vv" array field.

      that single ampersand seems to breaking the default url encoding that is generated in my browser (Chrome 62.0.3202.94) when i click the search link generated at the top of the /query page of the solr UI.

      in the UI, my q is

      vv:"Covers for Modular Outdoor Club Chairs" && vv:"Resort Club & Ottoman Set"
      

      the UI generates the following url. when I click it, i get different results from the results in the /query UI

      http://localhost:8983/solr/films/select?q=vv:"Covers for Modular Outdoor Club Chairs" && vv:"Resort Club & Ottoman Set"
      

      because the url gets encoded wrong. Resultant url seen in browser:

      http://localhost:8983/solr/films/select?q=vv:%22Covers%20for%20Modular%20Outdoor%20Club%20Chairs%22%20&&%20vv:%22Resort%20Club%20&%20Ottoman%20Set%22
      

      Properly-encoded url that leads to correct results:

      http://localhost:8983/solr/films/select?q=vv%3A%22Covers%20for%20Modular%20Outdoor%20Club%20Chairs%22%20%26%26%20vv%3A%22Resort%20Club%20%26%20Ottoman%20Set%22
      

      (encoded using https://www.urlencoder.org/)

      if the Solr UI is to generate a clickable link that appears to be equivalent to the UI's search, then it ought to link to the correct search.

      i'm listing this as a "bug" even though it seems to be more of a "flaw" because it's an issue that breaks the user experience and leads to unexpected results.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stuartcrobinson stuart robinson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: