Hi,
I get errors when searching for users. To reproduce, under
https://syncope-vm.apache.org/syncope-console, when searching for users
with Firstname '%' (a single percent character) I get:
Error!
InvalidSearchParameters: IllegalArgumentException: URLDecoder: Incomplete
trailing escape (%) pattern, firstname=~%
When searching for users with Firstname '"' (a single double quote
character) I get:
Error!
GenericPersistence: ReportingSQLException: ERROR: syntax error at or near """
of jsonpath input
Position: 176 {prepstmnt 1024419533 SELECT COUNT(DISTINCT t.id) FROM SyncopeUser t,jsonb_path_query_array(plainattrs, '$[*]
? (@.schema=="firstname")."values"') AS firstname WHERE ((jsonb_path_exists(firstname, '$[*] ?
(@.stringValue like_regex "^"$" flag "i")')) AND (realm_id IN (?,?,?,?)))} [code=0, state=42601]
These errors occur also when directly using the API, but only when using
postgres, not when using mariadb.
Kind regards
Stephan
--
Stephan Feder
IDM
Backendinfrastruktur & Authentisierung
Technische Universität Darmstadt
Hochschulrechenzentrum (HRZ)
tel:+49-6151-16-71162
mailto:[email protected]
https://www.hrz.tu-darmstadt.de