Uploaded image for project: 'PhenoTips'
  1. PT-3892

Work groups with quotation marks, & or < in their name in their name break the suggest functionality

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.4.2, 1.5-milestone-1
    • Component/s: None
    • Labels:
      None
    • Sprint:

      Description

      Steps to reproduce for ":

      • create a work group named the "gold" team (note the quotation marks)
      • navigate to "browse patients"
      • type "go" in the owner filter

      Expected result: the "gold" team appears as a suggestion.

      Steps to reproduce for <:

      • create a work group named the silver <3 team
      • navigate to "browse patients"
      • type "si" in the owner filter

      Expected result: the silver <3 team appears as a suggestion.

      Actual result: no suggestions appear and the suggest widget looks stuck. The actual response in of the suggest request looks like this:

      <results>
        <parsererror style="
      display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black">
          <h3>This page contains the following errors:</h3>
          <div style="font-family:monospace;font-size:12px">error on line 1 at column 23: attributes construct error</div>
          <h3>Below is a rendering of the page up to the first error.</h3>
        </parsererror>
      </results>
      

      Steps to reproduce for &:

      • create user Peter Brown
      • create a workgroup "Mary&Peter"
      • navigate to "Browse patients" and type "p" in the "owner" filter

      Expected results: suggestions "Peter Brown" and "Mary&Peter" should appear

      Actual results: no suggestions are visible. If "b" is typed instead, "Peter Brown" correctly appears as a suggestion.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                veronikaslc VeronikaK
                Reporter:
                marta Marta Girdea
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: