[
https://issues.apache.org/jira/browse/SLING-2781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13598695#comment-13598695
]
Carsten Ziegeler commented on SLING-2781:
-----------------------------------------
Ok, my description is too brief - I'm not refering to changes done by other
sessions - I'm talking about a change through the same resource resolver, for
example:
1. get a resource from the resource resolver
2. adapt it to ModifiableValueMap
3. set the resource type on the modifiable map
4. get the resource type from the resource above - it contains the old rt
5. commit the changes done in 3
6. get the resource type from the resource above - it contains the old rt
This doesn't look right
> JcrNodeResource is caching resource type
> ----------------------------------------
>
> Key: SLING-2781
> URL: https://issues.apache.org/jira/browse/SLING-2781
> Project: Sling
> Issue Type: Bug
> Components: JCR
> Affects Versions: JCR Resource 2.2.4
> Reporter: Carsten Ziegeler
> Fix For: JCR Resource 2.2.6
>
>
> The JcrNodeResource caches the resource type, it gets the value in the
> constructor. If the resource type is changed, for example by setting the
> sling:resourceType property, the resource object is not updated.
--
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