Steps to repro:
- Go to Users
- Entering ")" into the search criteria and hitting Search
Expected: Return results containing this character or show "No results found for ")". Please check your spelling and filters."
Actual: Generates an error: ERROR: in module @folio/users, operation GET on resource 'records' failed, saying: Internal Server Error, Please contact System Administrator or try again
Additional info: Entering "^" retrieves all records. Not sure why this is, but I guess it's okay.
The query for ")" result in the following CQL query: (title=")" or contributors adj "\"name\": \")\"" or identifiers adj "\"value\": \")\"") sortby title which seems OK. The error returned by the server seems to be coming from Postgres.
ErrorMessage(fields=Map(Line -> 208, File -> regexp.c, SQLSTATE -> 2201B, Routine -> RE_compile_and_cache, V -> ERROR, Message -> invalid regular expression: parentheses () not balanced, Severity -> ERROR))