of such a limitation and so
didn't run the Jackrabbit test. I will try to find an alternative solution.
TCK: SQLPathTest.testChildAxisRoot expected root node not in result
---
Key: JCR-3376
the
test as follows:
... AND NOT jcr:path LIKE '/%/%' AND jcr:path '/'
Summary: TCK: SQLPathTest.testChildAxisRoot expects root node not in
result (was: TCK: SQLPathTest.testChildAxisRoot expected root node not in
result)
TCK: SQLPathTest.testChildAxisRoot expects root node
SQLPathTest.testChildAxisRoot, the root node is now optional.
I tested with Jackrabbit Core (-PintegrationTesting) and with Oak (oak-jcr),
with the test removed from the known.issues list in the pom.xml.
TCK: SQLPathTest.testChildAxisRoot expects root node not in result
in one query.
It sounds like we should rather fix Jackrabbit than this test case, but until
someone has time to look at the details it's best to avoid failing the build,
so I reverted the change for now in revision 1358567. Reopening until we have a
better solution.
TCK
Thomas Mueller created JCR-3376:
---
Summary: TCK: SQLPathTest.testChildAxisRoot expected root node not
in result
Key: JCR-3376
URL: https://issues.apache.org/jira/browse/JCR-3376
Project: Jackrabbit
[
https://issues.apache.org/jira/browse/JCR-3376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thomas Mueller resolved JCR-3376.
-
Resolution: Fixed
Fix Version/s: 2.6
TCK: SQLPathTest.testChildAxisRoot expected root
Hi,
The test case SQLPathTest.testChildAxisRoot runs the following SQL-1 query:
SELECT * FROM nt:base WHERE jcr:path LIKE '/%' AND NOT jcr:path LIKE '/%/%'
It expected the result to be
/jcr:system, /testroot, /testdata
Shouldn't / (the root node) also be part of the result? The
Surprisingly, the test appears to be correct as written: the root node should
NOT be included in the results.
To see why, we have to look at Section 6.6.3.4 (Path Constraint) in the
JSR-170 specification, since we're talking about JCR's original SQL language.
In particular, the Child node path
...@gmail.com
Reply-To: dev@jackrabbit.apache.orgmailto:dev@jackrabbit.apache.org
dev@jackrabbit.apache.orgmailto:dev@jackrabbit.apache.org
To: dev@jackrabbit.apache.orgmailto:dev@jackrabbit.apache.org
dev@jackrabbit.apache.orgmailto:dev@jackrabbit.apache.org
Subject: Re: TCK / SQLPathTest.testChildAxisRoot
@jackrabbit.apache.org)
To: dev@jackrabbit.apache.org (mailto:dev@jackrabbit.apache.org)
dev@jackrabbit.apache.org (mailto:dev@jackrabbit.apache.org)
Subject: Re: TCK / SQLPathTest.testChildAxisRoot
Surprisingly, the test appears to be correct as written: the root node should
NOT be included
10 matches
Mail list logo