-
Bug
-
Resolution: Duplicate
-
Low
-
5.7.1, 5.8.13
Issue
Performing a CQL search with a semicolon generates an error
Examples
Error code
{ statusCode: 400, data: { authorized: false, valid: true, errors: [ ] }, message: "Could not parse cql : title=test:" }
Report from DoS
Entering title~"somethingwithacolon:" throws an error. It's because in a Lucene query, the ':' marks a key and a value, so 'macroName:jira' is the Lucene syntax to search for pages that contain a JIRA macro. It does however work if you use '=' instead of '' (eg title="somethingwithacolon:"), or if you put double and single quotes around the value - title"'somethingwithacolon:'" - that stops Lucene from trying to interpret it as a key/value pair.
- is related to
-
CONFSERVER-39548 CQL Text field with colon caused server error
-
- Closed
-
This issue is mentioned in commits included in the Confluence 6.0.0-OD-2016.01.1-0003 release being approved for production: CPU-180