plone / plone.app.querystring

Provides an queryparser, querybuilder and extra helper tools, to parse stored queries to actual results, used in new style Plone collections
https://pypi.org/project/plone.app.querystring/
2 stars 26 forks source link

Catalog search does not handle correctly parenthesis inside quotes #139

Closed erral closed 7 months ago

erral commented 7 months ago

See also https://github.com/plone/Products.CMFPlone/issues/3879

What I did:

Add a page with parenthesis enclosed text as a title
Try to search that page using quoted query

What I expect to happen:

The search searches the page

What actually happened:

The search does not find the page
When accessing through REST API (because plone.app.querystring uses the munge_search_term function here), we get an error because the query is transformed to an unknown string for ZCatalog

What version of Plone/ Addons I am using:

Plone 6