Description
This is issue https://jira.xwiki.org/browse/XWIKI-14126 applied to queries in the forum application.
The fix is to use the .literal().anyChars() API for the queries in the forum, as documented here https://extensions.xwiki.org/xwiki/bin/view/Extension/Query%20Module#HPerformingQueries (section 'Binding a LIKE value').
However, this will not be compatible with versions of XWiki under 8.4.5 and in those cases, this solution needs to be applied: https://extensions.xwiki.org/xwiki/bin/view/Extension/Query%20Module#HFindingpagesundernestedpages .
The modifications need to be done in 4 places, at least:
https://github.com/xwikisas/application-forum/blob/master/application-forum-ui/src/main/resources/ForumCode/ForumSheet.xml#L61
https://github.com/xwikisas/application-forum/blob/master/application-forum-ui/src/main/resources/ForumCode/Macros.xml#L410
https://github.com/xwikisas/application-forum/blob/master/application-forum-ui/src/main/resources/ForumCode/Macros.xml#L436
https://github.com/xwikisas/application-forum/blob/master/application-forum-ui/src/main/resources/ForumCode/Macros.xml#L444