jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Reschke (Jira)" <j...@apache.org>
Subject [jira] [Commented] (OAK-9584) Node.hasProperty("rep:authorizableId") only supports qualified names but not expanded names.
Date Mon, 27 Sep 2021 15:58:00 GMT

    [ https://issues.apache.org/jira/browse/OAK-9584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17420848#comment-17420848
] 

Julian Reschke commented on OAK-9584:
-------------------------------------

...it does not conform to the grammar, see <[https://docs.adobe.com/content/docs/en/spec/jcr/2.0/3_Repository_Model.html#3.2.1%20Namespaces]>,
but the whole concept of expanded names in JCR *relies* on the namespace name containing a
colon.
h3. 3.2.1 Namespaces

A _JCR namespace_ is either the empty string or a Universal Resource Identifier^[2|https://docs.adobe.com/content/docs/en/spec/jcr/2.0/3_Repository_Model.html#sdfootnote2sym]^.

Namespace ::= EmptyString | Uri
 EmptyString ::= /* The empty string */

Uri ::= /* A URI, as defined in Section 3 in [http://tools.ietf.org/html/rfc3986#section-3]
*/

 
 (yes, this is an old issue)

> Node.hasProperty("rep:authorizableId") only supports qualified names but not expanded
names.
> --------------------------------------------------------------------------------------------
>
>                 Key: OAK-9584
>                 URL: https://issues.apache.org/jira/browse/OAK-9584
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>    Affects Versions: 1.40.0
>            Reporter: Konrad Windszus
>            Priority: Major
>
> I have a JCR Node which returns
> {{true}} for 
> {code}
> node.hasProperty("rep:authorizableId")
> {code} but 
> {{false}} for 
> {code}
> node.hasProperty("{internal}authorizableId")
> {code}
> According to https://docs.adobe.com/content/docs/en/spec/jcr/2.0/3_Repository_Model.html#3.2.6%20Use%20of%20Qualified%20and%20Expanded%20Names
> bq. When a JCR name is passed as an argument to a JCR method it may be in either expanded
or qualified form. 
> this is a violation of the spec.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message