[ https://issues.apache.org/jira/browse/SLING-2156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13072442#comment-13072442 ]
Markus Joschko commented on SLING-2156: --------------------------------------- I very much like the broader approach as I have another use case in mind for which this kind of postresponse creator can be handy: In my application there is a validating postprocessor that inspects the modifications done within an operation. If it finds something "wrong" it only can throw an exception to prevent the saving of the node. The resulting error page is not particular catchy as the error message is a bit hidden. With the postresponse creator it could be presented a lot better to the client. > Provide error handling for POST operations > ------------------------------------------ > > Key: SLING-2156 > URL: https://issues.apache.org/jira/browse/SLING-2156 > Project: Sling > Issue Type: New Feature > Components: Servlets > Reporter: Antonio Sanso > > The error handling mechanism described here [0] doesn't seem to apply also to > POST operations. > If an error occurs while posting a resource to repository (e.g. > avax.jcr.nodetype.ConstraintViolationException: no matching property > definition found for) the HtmlResponse.html template is rendered. > This can also represent a security issue since information as > REFERRER/technology stack are shown. > IMHO this page should be at least configurable (if the mechanism in [0] > doesn't suite here). > [0] http://sling.apache.org/site/errorhandling.html -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira