Uploaded image for project: 'ERM Platform'
  1. ERM Platform
  2. ERM-2550

Ampersand not encoded when used in search string

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • TBD
    • Resolution: Won't Do
    • None
    • ERM Sprint 157, ERM Sprint 158
    • Bienenvolk
    • Implementation coding issue

    Description

      Overview:
      Affects Nolana and MG, but not current master
      Affects all search boxes in agreements and licenses search & filter panes
      Searching for a term like `A&AePortal` does not produce expected results

      Steps to Reproduce:

      1. Log into https://bugfest-nolana.int.aws.folio.org/ or https://bugfest-mg.int.aws.folio.org/
      2. Carry out a search for `A&AePortal`
      3. In developers console note the Request URL has parameters:
        `erm/sas?
        match=name&
        match=alternateNames.name&
        match=description&
        term=A&AePortal&
        filters=agreementStatus.value==active%7C%7CagreementStatus.value==draft%7C%7CagreementStatus.value==in_negotiation%7C%7CagreementStatus.value==requested&sort=name;asc&stats=true&perPage=100&offset=0`

      Expected Results:
      Expect that the ampersand in `A&AePortal` encoded as %26 to avoid this being treated as a join between parameters

      Actual Results:
      ampersand not encoded so interpreted as a search for `A`
      Additional Information:
      Seems to be fixed in current master branch as I cannot recreate in snapshot environment

      Interested parties:
      jmulvaney

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                ostephens Owen Stephens
                ostephens Owen Stephens
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases