jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-2833) Definition of a property with '-' in the name (e.g.: wrprop:e-mail) is wrongly interpreted by CompactNodeTypeDefReader
Date Fri, 14 Jan 2011 16:43:47 GMT

     [ https://issues.apache.org/jira/browse/JCR-2833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Stefan Guggisberg resolved JCR-2833.
------------------------------------

    Resolution: Invalid

you should enclose the name in quotes , e.g.

tst = 'http://namespace.org/tst'>
[tst:JCR2833] mixin
  - "tst:e-mail" (string)

see "25.2.3 CND Grammar" of the JSR-283 spec:

<quote>
Quotes are used to allow for strings (i.e., names, prefixes,
URIs, values or constraint strings) with characters that
would otherwise be interpreted as delimiters in CND.
</quote>

> Definition of  a property with '-' in the name (e.g.: wrprop:e-mail) is wrongly interpreted
by CompactNodeTypeDefReader
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: JCR-2833
>                 URL: https://issues.apache.org/jira/browse/JCR-2833
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core
>    Affects Versions: 2.1.2
>            Reporter: Luca Tagliani
>
> Registering a nodetype with a property with '-' inside the name lead to the creation
of a property every '-' found.
> E.g.:
> ...
> - wrprop:e-mail
> ...
> creates a property wrprop:e and a property mail.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message