Classes with an underscore in their name won't let you run XWQL queries with object properties clauses.
Steps to reproduce:
- Create a class 'XWiki.Speaker_Class'
- Add a static list attribute 'country' to it. Specify a list of values such as: 'fr|uk|cn|ja'
- Create a page 'Main.JohnDoe', add an XWiki.Speaker_Class object to it, select 'uk' from the country list
- Create a page 'Main.UkSpeakers' and add the following Velocity script to it:
The following error is then raised, while the same steps without the underscore in the class name return the expected result.
The issue was reproduced against the XWiki playground, version 7.1.1. Note that the HQL transposition of the query returns the expected results.