[
https://issues.apache.org/jira/browse/OAK-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13769404#comment-13769404
]
Chetan Mehrotra commented on OAK-1020:
--------------------------------------
In JR2 [1] the logic first does an exact match (desired property type ==
defined required property type). That match fails then logic treats it as a
residual property and finds one
[1]
https://github.com/apache/jackrabbit/blob/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/EffectiveNodeType.java#L764
> Property value converion ignores reisdual property definition
> -------------------------------------------------------------
>
> Key: OAK-1020
> URL: https://issues.apache.org/jira/browse/OAK-1020
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: jcr
> Reporter: Chetan Mehrotra
> Priority: Minor
> Attachments: OAK-1020.patch
>
>
> Assume following node type which a property defined with type and a residual
> unnamed property also defined
> {noformat}
> [oak:foo]
> - stringProp (String)
> - * (undefined)
> {noformat}
> For such node type if a property {{stringProp}} is being set with a binary
> value then Oak converts it into a String property thereby causing binary
> stream to change. In JR2 conversion would not happen as conversion logic
> treats setting (stringProp,BINARY) as a residual property
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira