[ 
https://issues.apache.org/jira/browse/SLING-6515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15931734#comment-15931734
 ] 

Karolis Mackevicius commented on SLING-6515:
--------------------------------------------

In order it to work properly in case of an Exception in Sling Post Processor, 
HtmlResponse class should override *setError* method as well.
https://github.com/apache/sling/blob/4df9ab2d6592422889c71fa13afd453a10a5a626/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/HtmlResponse.java

> Sling Post Processor considering validation model as well
> ---------------------------------------------------------
>
>                 Key: SLING-6515
>                 URL: https://issues.apache.org/jira/browse/SLING-6515
>             Project: Sling
>          Issue Type: Improvement
>          Components: Validation
>            Reporter: Konrad Windszus
>
> It should be possible to optionally enable a Sling Post Processor which 
> validates the incoming parameters against a validation model. In case the 
> incoming parameters are not valid, there must be an error response. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to