Description
Fix for the failing tck test NodeNameTest, as marked in the oak-jcr pom file.
NodeName comparison with REFERENCE must fail with InvalidQueryException
Query:
select * from [nt:unstructured] AS [s] where (ISCHILDNODE([s], [/testroot])) AND (NAME([s]) = CAST('80e7a0cd-943b-4861-b996-8c3567be2736' AS REFERENCE))
In Jackrabbit: LuceneQueryFactory#getNodeNameQuery throws InvalidQueryException("Invalid name value: " + string) for any of the following value types: PropertyType.DOUBLE, PropertyType.DECIMAL, PropertyType.LONG, PropertyType.BOOLEAN, PropertyType.REFERENCE, PropertyType.WEAKREFERENCE.