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

Justin Edelson resolved SLING-2227.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: Servlets Post 2.1.2

tweaked the patch slightly to move the constant into the constants class.

Fixed in r1179422

Thanks for the patch!
                
> 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.diff, session_skip_changed_name.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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to