Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.7.3
-
None
-
None
Description
These GQL queries lead to an ArrayIndexOutOfBoundsException:
OR property:something
path:/content OR property:something
This is because GQL#pushExpression() will blindly replace the previous entry in the "conditions" list, even if it is still empty.
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.ArrayList.get(ArrayList.java:324) at org.apache.jackrabbit.commons.query.GQL.pushExpression(GQL.java:798) at org.apache.jackrabbit.commons.query.GQL.access$000(GQL.java:133) at org.apache.jackrabbit.commons.query.GQL$1.term(GQL.java:426) at org.apache.jackrabbit.commons.query.GQL.parse(GQL.java:682) at org.apache.jackrabbit.commons.query.GQL.translateStatement(GQL.java:423) at org.apache.jackrabbit.commons.query.GQL.execute(GQL.java:389) at org.apache.jackrabbit.commons.query.GQL.execute(GQL.java:322)