[
https://jira.nuxeo.com/browse/NXP-6697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Work on NXP-6697 started by Bogdan Stefanescu.
> Some operations executed in LoginAs blocks may still use the old session
> ------------------------------------------------------------------------
>
> Key: NXP-6697
> URL: https://jira.nuxeo.com/browse/NXP-6697
> Project: Nuxeo Enterprise Platform
> Issue Type: Bug
> Reporter: Bogdan Stefanescu
> Assignee: Bogdan Stefanescu
> Priority: Major
>
> The LoginAs operation may be used to change the context session for a set of
> operations (that may require additional permissions)
> The problem is that some methods on DocumentModel are calling the session
> used to fetch the document. This is the case for setACP, followTransition etc.
> So, operations that are calling these methods on the input document will
> still use the initial session and not the one created by the LoginAs.
> The fix is to refetch the input document if any using the good session in the
> LoginAs operation. and refetching it again in the Logout using the original
> session.
> Anyway this may not fix all cases. If there are documents pushed in the
> context stack they will still use the old session.
> As a general rule to avoid this style of problems - it is better to not use
> documentmodel methods that delegates the call to the session when writing
> operations.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets