Details
-
Bug
-
Status: Closed (View Workflow)
-
P2
-
Resolution: Won't Do
-
None
-
None
-
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:
- Log into snapshot as a user with permission to conduct searches in ui-inventory
- Begin typing the following query, allowing auto-complete to finish it:
"Title (all)" = rapport
- Click "Submit" and get results. Yay!
- Copy the completed query
- Click the "Reset all" button
- Paste the completed query
- 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