Project

General

Profile

Actions

Bug #12194

closed

[API] [Workbench] Colons and ampersands in search should not produce errors

Added by Tom Clegg over 6 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Workbench
Target version:
Story points:
-

Description

Currently, typing "bcbio:latest" in the Workbench search box results in a filter like ["any","@@","bcbio:latest"], which produces an API error:

{"errors":["#<PG::SyntaxError: ERROR:  syntax error in tsquery: \"bcbio:latest:*\"\n>"],"error_token":"1504037967+aa140687"}

Proposed fix:

On the API side, use plainto_tsquery() instead of to_tsquery(). In Workbench, stop adding ":*" to each search -- that will be dropped by plainto_tsquery() anyway.

This will mean no prefix-matching -- will that be seen as an improvement or a regression?


Subtasks 1 (0 open1 closed)

Task #12203: Review 12194-search-always-validResolvedTom Clegg08/30/2017Actions

Related issues

Related to Arvados - Bug #12251: [API] Strict checks for "@@" filter operandClosed09/13/2017Actions
Actions

Also available in: Atom PDF