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

Robert Munteanu closed SLING-1797.
----------------------------------

> Looking for versionable ancestor may cause failure
> --------------------------------------------------
>
>                 Key: SLING-1797
>                 URL: https://issues.apache.org/jira/browse/SLING-1797
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: Servlets Post 2.1.0
>
>
> The AbstractSlingPostOperation.findVersionableAncestor method tries to find a 
> versionable ancestor to the node to be modified during the request by 
> repeatedly calling Item.getParent() until the root or a versionable node is 
> reached.
> If the current request does not have access to an ancestor thus visited an 
> AccessDeniedException is thrown by the getParent() method thus failing the 
> POST request early and probably unrelated to any actually requested operation.
> Fix is to catch the AccessDeniedException and assume no versionable ancestor. 
> If the operation then fails, it will fail due to the actual operation failing 
> possibly because an ancestor which should be checked out.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to