Uploaded image for project: 'Islandora'
  1. Islandora
  2. ISLANDORA-1749

Solr display fields - link to search result creates error when field contains a slash

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.x-1.6, 7.x-1.7, 7.x-1.10
    • Fix Version/s: 7.x-1.11
    • Component/s: Solr Search
    • Labels:
      None

      Description

      When configuring Solr Display Fields (admin/islandora/search/islandora_solr/settings), the option exists to link the field's content to a Solr search result. If the content of that field includes a slash ("/"), the search result goes to a 400 "Bad request" error.

      The slash is not escaped when the search URL is generated, resulting in this bad request.
      Example: the Genre field with content "Dissertation/thesis" goes to the following search result: /islandora/search/mods_genre_mt%3A%22Dissertation%5C/thesis%22

      Note the slash in %22Dissertation%5C/thesis%22.

      The search works if the / is replaced by slsh manually.

      This bug was tested and confirmed in Vagrant.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nhart Nelson Hart
                Reporter:
                brandonw Brandon Weigel
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: