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

Robert Munteanu closed SLING-2227.
----------------------------------

> Add configuration to skip session.save in AbstractPostOperation
> ---------------------------------------------------------------
>
>                 Key: SLING-2227
>                 URL: https://issues.apache.org/jira/browse/SLING-2227
>             Project: Sling
>          Issue Type: Improvement
>          Components: Servlets
>            Reporter: Markus Joschko
>            Assignee: Justin Edelson
>             Fix For: Servlets Post 2.1.2
>
>         Attachments: session_skip_changed_name.diff, session_skip.diff
>
>
> With SLING-1725 the postservlet operations have been exposed as services to 
> be consumed by other servlets.
> I use that to create two nodes with the ModifyOperation in one request. 
> However the second node creation might fail because of the postprocessors.
> In that case I want to return an error to the user and have nothing stored. 
> This can't be done at the moment as the AbstractPostOperation always saves 
> independently from its context (so first node gets saved, second node not).
> I think it makes a lot of sense to let the caller of the operation have 
> control over when the session is saved and introduced a flag to skip the save 
> when requested.
> It is modeled after the isSkipCheckin flag. 



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

Reply via email to