Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9A6BC9749 for ; Tue, 20 Dec 2011 13:25:57 +0000 (UTC) Received: (qmail 45896 invoked by uid 500); 20 Dec 2011 13:25:57 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 45846 invoked by uid 500); 20 Dec 2011 13:25:57 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 45839 invoked by uid 99); 20 Dec 2011 13:25:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Dec 2011 13:25:57 +0000 X-ASF-Spam-Status: No, hits=-2002.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Dec 2011 13:25:54 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6A76211D6C6 for ; Tue, 20 Dec 2011 13:25:32 +0000 (UTC) Date: Tue, 20 Dec 2011 13:25:32 +0000 (UTC) From: "Thomas Mueller (Commented) (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <2050014302.30692.1324387532437.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1446988912.15716.1323959430807.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (JCR-3182) SQL2 Parser fails for some version paths MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-3182?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D131731= 77#comment-13173177 ]=20 Thomas Mueller commented on JCR-3182: ------------------------------------- As far as I understand the specification, [/jcr:system/jcr:versionStorage/1= 7/66/ea/1766eaef-f0f5-4cf6-95ef-a1d7290257f9] is not a legal name: http://www.day.com/specs/jcr/2.0/6_Query.html#6.7.4 Name Name ::=3D '[' quotedName ']' | '[' simpleName ']' | simpleName ::=3D /* A JCR Name that is also a legal SQL identifier 10 */ 10 See the SQL:92 rules for (in ISO/IEC 9075:1992 =C2= =A75.2 and ). =20 > SQL2 Parser fails for some version paths > ---------------------------------------- > > Key: JCR-3182 > URL: https://issues.apache.org/jira/browse/JCR-3182 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-jcr-commons, query > Reporter: Alex Parvulescu > Priority: Minor > Attachments: JCR-3182-test.patch > > > This is the SQL2 query that is failing at the moment: > SELECT NODE.* FROM [nt:base] AS NODE WHERE ISCHILDNODE(NODE, [/jcr:syst= em/jcr:versionStorage/17/66/ea/1766eaef-f0f5-4cf6-95ef-a1d7290257f9]) > I've seen that while running some queries on the versioning store. > Stacktrace: > SELECT * FROM [nt:base] as NODE WHERE ischildnode(NODE, [/jcr:system/jcr:= versionStorage/17/66/ea/(*)1766eaef-f0f5-4cf6-95ef-a1d7290257f9]) > =09at org.apache.jackrabbit.commons.query.sql2.Parser.getSyntaxError(Pars= er.java:978) > =09at org.apache.jackrabbit.commons.query.sql2.Parser.getSyntaxError(Pars= er.java:959) > =09at org.apache.jackrabbit.commons.query.sql2.Parser.readDecimal(Parser.= java:937) > =09at org.apache.jackrabbit.commons.query.sql2.Parser.read(Parser.java:84= 6) > =09at org.apache.jackrabbit.commons.query.sql2.Parser.readAny(Parser.java= :667) > =09at org.apache.jackrabbit.commons.query.sql2.Parser.readName(Parser.jav= a:158) > =09at org.apache.jackrabbit.commons.query.sql2.Parser.readPath(Parser.jav= a:384) > =09at org.apache.jackrabbit.commons.query.sql2.Parser.parseConditionFunti= onIf(Parser.java:365) > =09at org.apache.jackrabbit.commons.query.sql2.Parser.parseCondition(Pars= er.java:258) > =09at org.apache.jackrabbit.commons.query.sql2.Parser.parseAnd(Parser.jav= a:241) > =09at org.apache.jackrabbit.commons.query.sql2.Parser.parseConstraint(Par= ser.java:233) > =09at org.apache.jackrabbit.commons.query.sql2.Parser.createQueryObjectMo= del(Parser.java:117) > =09at org.apache.jackrabbit.commons.query.sql2.SQL2QOMBuilder.createQuery= ObjectModel(SQL2QOMBuilder.java:55) > =09at org.apache.jackrabbit.core.query.QOMQueryFactory.createQuery(QOMQue= ryFactory.java:70) > =09at org.apache.jackrabbit.core.query.CompoundQueryFactory.createQuery(C= ompoundQueryFactory.java:67) > =09at org.apache.jackrabbit.core.query.QueryManagerImpl$2.perform(QueryMa= nagerImpl.java:95) > =09at org.apache.jackrabbit.core.query.QueryManagerImpl$2.perform(QueryMa= nagerImpl.java:1) > =09at org.apache.jackrabbit.core.session.SessionState.perform(SessionStat= e.java:216) > =09at org.apache.jackrabbit.core.query.QueryManagerImpl.perform(QueryMana= gerImpl.java:197) > =09at org.apache.jackrabbit.core.query.QueryManagerImpl.createQuery(Query= ManagerImpl.java:91) > =09at org.apache.jackrabbit.core.cluster.DbClusterTestJCR3162.checkConsis= tency(DbClusterTestJCR3162.java:177) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira