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

Michael Dürig commented on OAK-993:
-----------------------------------

For {{Item.save()}} I changed the default behaviour such that the operation 
falls back to {{Session.save()}} and logs a warning whenever a transient 
modifications exist outside the sub-tree of the respective item. Running with 
{{-Ditem-save-does-session-save=false}} disables the fall back to 
{{Session.save}} but rather throws an 
{{UnsupportedRepositoryOperationException}} in the case where transient 
modifications exist out side of the item's sub-tree.

See http://svn.apache.org/r1521529
                
> Improve backward compatibility for Item.save and Item.refresh
> -------------------------------------------------------------
>
>                 Key: OAK-993
>                 URL: https://issues.apache.org/jira/browse/OAK-993
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: jcr
>            Reporter: Michael Dürig
>
> As described in OAK-132 and OAK-141, both methods are implemented by 
> delegating back to the respective {{Session}} methods and writing a warning 
> to the log. This might introduce difficult to diagnose errors for those 
> clients that rely on being able to only save/refresh parts of the transient 
> space. A better solution might be to detect whether a save/refresh covers all 
> transient changes and only then delegate back to the respective {{Session}} 
> operation but throw an {{UnsupportedRepositoryException}} otherwise. 

--
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

Reply via email to