Uploaded image for project: 'ui-users'
  1. ui-users
  2. UIU-1086

Trailing space in search phrase triggered unnecessary star query condition

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      Core: F - Sprint 66
    • Story Points:
      2
    • Development Team:
      Prokopovych

      Description

      Noticed following strange query in BugFest Q2.2 log. Note the strange "and" part.

      /users?limit=30&offset=30&query=((username="ellen*" or personal.firstName="ellen*" or personal.lastName="ellen*" or personal.email="ellen*" or barcode="ellen*" or id="ellen*" or externalSystemId="ellen*") and (username="*" or personal.firstName="*" or personal.lastName="*" or personal.email="*" or barcode="*" or id="*" or externalSystemId="*")) sortby personal.lastName personal.firstName
      /users?limit=30&query=(username="ylva*" or personal.firstName="ylva*" or personal.lastName="ylva*" or personal.email="ylva*" or barcode="ylva*" or id="ylva*" or externalSystemId="ylva*") and (username="*" or personal.firstName="*" or personal.lastName="*" or personal.email="*" or barcode="*" or id="*" or externalSystemId="*")
      

      It turns out that if user type a search phrase with trailing space will trigger those queries.

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                zburke Zak_Burke
                Reporter:
                hji Hongwei Ji
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases