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

Double urlencoded links break subsequent search facet links

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.x-1.5
    • Fix Version/s: 7.x-1.6
    • Component/s: Solr Metadata
    • Labels:
      None
    • Sprint:
      Islandora 7.x-1.6 Sprint 01

      Description

      islandora_solr_metadata/theme/theme.inc (line 239)'!value' => urlencode(islandora_solr_replace_slashes(islandora_solr_lesser_escape($original_value))),

      ...produces badly encoded hyperlinks like so:

      original value: North Carolina--Charlotte
      encoded value: North%255C%2BCarolina%255C-%255C-Charlotte

      Problem 1. %25 represents the percentage character, which seems completely out of place...

      Problem 2. 5C is supposed to be there, but it's missing a percentage sign...

      Problem 3. %2B is represents the + character, which we shouldn't be seeing, because a space should be url encoded as %20. URLencoding a + (plus sign) seems like a recipe for destruction...

      The result is a badly encoded hyperlink that somehow, generally works on the first click, but the bad encoding information is then passed onto islandora_solr_search 's facet links and renders them useless (no search results due to bad encoding).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                whikloj Jared Whiklo
                Reporter:
                bradspry Brad Spry
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: