Uploaded image for project: 'ui-inventory'
  1. ui-inventory
  2. UIIN-1638

query copied into search box results in an error

    XMLWordPrintable

Details

    • Prokopovych

    Description

      Overview: Copying a query into the search box and clicking "Search" results in an error. NB: copying a single value, e.g. rapport works fine; this is specifically about copying a whole query
      Steps to Reproduce:

      1. Log into snapshot as a user with permission to conduct searches in ui-inventory
      2. Begin typing the following query, allowing auto-complete to finish it:
        "Title (all)" = rapport 
        
      3. Click "Submit" and get results. Yay!
      4. Copy the completed query
      5. Click the "Reset all" button
      6. Paste the completed query
      7. Click the "Submit" button

      Expected Results: Results. Yay!
      Actual Results: JS alert with the following text, pulled from the 400 response from mod-search:

      {"errors":[{
        "message":"Failed to parse cql query [cql: '(keyword all \"\"Title (all)\" = rapport \") sortby title', resource: instance]",
        "type":"SearchServiceException",
        "code":"service_error"}],
        "total_records":1
      }
      

      Note: copying an entire URL works (sort of; see UIIN-1637) so it is possible to bookmark a search or share a link with a colleague; it is merely copying a query directly into the search box that does not function.

      Interested parties: charlotte

      TestRail: Results

        Attachments

          Activity

            People

              Unassigned Unassigned
              zburke Zak_Burke
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases