Searching for a topic title that contains an apostrophe causes the following error: javax.el.ELException: /WEB-INF/templates/TopicSearchListActionButtons.xhtml @9,75 rendered="#{render == null || render}": /CustomSearchTopicList.xhtml @237,84 value="#{not empty groupedTopicTagsList.resultList}": java.lang.IllegalArgumentException: org.hibernate.QueryException: expecting ''', found '<EOF>' [SELECT topic FROM com.redhat.topicindex.entity.Topic as Topic WHERE (LOWER(topic.topicTitle) LIKE LOWER('%Quota - A Users' Introduction%'
Fixed in build 20121123-1253. Cause: The query wasn't using the parameter binding to bind the passed values to a query, as such if you entered any form of HQL you could execute it to some extent (see Bug #837993). Consequence: If you used certain values in a search the search would either return unexpected results or throw an exception. Fix: Ensure that all user passed parameters are bound using prepared statements. In this case I used the JPA Criteria API to rewrite the backend Query Builders.