tsgrp / HPI

OpenContent Management Suite (OCMS)
http://www.tsgrp.com/products
17 stars 5 forks source link

CMIS queries containing underscore ("_") fail with use of OPERATOR_EQUALS #2434

Closed renesaladrigas closed 3 years ago

renesaladrigas commented 3 years ago

All ACA queries that send a parameter value that contains an underscore ("_") character (such as "IMG_9081.JPG") with an OPERATOR_EQAULS comparison to a CMIS query will fail with a stack trace similar to the one below: aca_cmis_underscore_query_stack.txt

This can be reproduced (and should test the locations) by configuring a saved search dashlet that specifies a search critieria of an attribute equaling a value with an underscore, such as below: image

This can also be reproduced by checking the "Make Search Exact" option for a particular search control on a search form. image

renesaladrigas commented 3 years ago

CMIS QUERY IMPL UNDERSCORE SEARCH: The CMIS implementation is incorrectly escaping the underscore "_" character from text queries. Removing this line of code as CMIS does not need underscores escaped. Commit #26995 CR - dhartman