Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 45810 invoked from network); 5 Nov 2007 07:26:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Nov 2007 07:26:13 -0000 Received: (qmail 26264 invoked by uid 500); 5 Nov 2007 07:26:00 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 26092 invoked by uid 500); 5 Nov 2007 07:26:00 -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 26083 invoked by uid 99); 5 Nov 2007 07:26:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Nov 2007 23:26:00 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Nov 2007 07:26:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3895371422B for ; Sun, 4 Nov 2007 23:25:51 -0800 (PST) Message-ID: <3051988.1194247551229.JavaMail.jira@brutus> Date: Sun, 4 Nov 2007 23:25:51 -0800 (PST) From: "Carsten Ziegeler (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-1195) CND: Dash not allowed for prefix in node type definitions In-Reply-To: <32840413.1193731851454.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-1195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12540141 ] Carsten Ziegeler commented on JCR-1195: --------------------------------------- Ah, ok, thats a little bit unusual (compared to defining xml namespaces), but that's ok. But I think the grammar in the docs needs an update then: >>> string ::= quoted_string | unquoted_string quoted_string :: = "'" unquoted_string "'" unquoted_string ::= [A-Za-z0-9:_]+ <<< The characters for unquoted string do not contain the dash and from that definition there is no difference between string and unquoted string except the quotes around the string. So according to the grammar +a would be a valid prefix. > CND: Dash not allowed for prefix in node type definitions > --------------------------------------------------------- > > Key: JCR-1195 > URL: https://issues.apache.org/jira/browse/JCR-1195 > Project: Jackrabbit > Issue Type: Bug > Components: nodetype > Affects Versions: 1.3.1, 1.4 > Reporter: Carsten Ziegeler > Assignee: Jukka Zitting > > If you try to use a dash for a prefix inside a note type definition (cnd text file), this currently leads to an exception during reading the file by the node type definition reader. > For example adding to the definition fails with: > org.apache.jackrabbit.core.nodetype.compact.ParseException: Missing = in namespace decl. (cnd-reader-test-input.cnd, line 18) > at org.apache.jackrabbit.core.nodetype.compact.Lexer.fail(Lexer.java:148) > at org.apache.jackrabbit.core.nodetype.compact.CompactNodeTypeDefReader.doNameSpace(CompactNodeTypeDefReader.java:228) > at org.apache.jackrabbit.core.nodetype.compact.CompactNodeTypeDefReader.parse(CompactNodeTypeDefReader.java:197) > at org.apache.jackrabbit.core.nodetype.compact.CompactNodeTypeDefReader.&init&(CompactNodeTypeDefReader.java:169) > at org.apache.jackrabbit.core.nodetype.compact.CompactNodeTypeDefReader.&init&(CompactNodeTypeDefReader.java:154) > at org.apache.jackrabbit.core.nodetype.compact.CompactNodeTypeDefTest.testCompactNodeTypeDef(CompactNodeTypeDefTest.java:108) > at org.apache.jackrabbit.core.nodetype.compact.CompactNodeTypeDefTest.testCompactNodeTypeDef(CompactNodeTypeDefTest.java:108) > This patch for the core test cases shows the error: > Index: /Users/cziegeler/Developer/workspaces/default/jackrabbit/jackrabbit-core/src/test/resources/cnd-reader-test-input.cnd > =================================================================== > --- /Users/cziegeler/Developer/workspaces/default/jackrabbit/jackrabbit-core/src/test/resources/cnd-reader-test-input.cnd (revision 587815) > +++ /Users/cziegeler/Developer/workspaces/default/jackrabbit/jackrabbit-core/src/test/resources/cnd-reader-test-input.cnd (working copy) > @@ -15,6 +15,7 @@ > * limitations under the License. > */ > > + > [ex:NodeType] > ex:ParentNodeType1, ex:ParentNodeType2 > orderable mixin > - ex:property (long) = '1', '2' primary mandatory autocreated protected multiple version < '[1,10]' -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.