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] [Updated] (OAK-238) ValueFactory: Missing identifier validation when creating (weak)reference value from String
Date Mon, 13 Aug 2012 09:33:38 GMT

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

angela updated OAK-238:

    Fix Version/s:     (was: 0.4)
> ValueFactory: Missing identifier validation when creating (weak)reference value from
> -------------------------------------------------------------------------------------------
>                 Key: OAK-238
>                 URL: https://issues.apache.org/jira/browse/OAK-238
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>            Reporter: angela
>            Assignee: angela
>             Fix For: 0.5
> 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. 
> <end_quote>
> 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