jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "angela (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OAK-238) ValueFactory: Missing identifier validation when creating (weak)reference value from String
Date Mon, 13 Aug 2012 08:51:37 GMT
angela created OAK-238:

             Summary: ValueFactory: Missing identifier validation when creating (weak)reference
value from String
                 Key: OAK-238
                 URL: https://issues.apache.org/jira/browse/OAK-238
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: jcr
            Reporter: angela

the JCR specification mandates validation of the identifier during
value conversion from STRING to REFERENCE or WEAK_REFERENCE:

<quote from From STRING To)>
REFERENCE or WEAKREFERENCE: If the string is a syntactically valid 
identifier, according to the implementation, it is converted directly, otherwise a 
ValueFormatException is thrown. The identifier is not required to be that of an 
existing node in the current workspace. 

the current ValueFactory implementation in oak-jcr lacks that validation:
creating a REFERENCE or WEAKREFERENCE value using
ValueFactory#createValue(String, int) succeeds even if the specified string
isn't a valid referenceable node identifier.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message