You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Ben Peter (Commented) (JIRA)" <ji...@apache.org> on 2011/12/06 14:21:40 UTC
[jira] [Commented] (SLING-2156) Provide error handling for POST
operations
[ https://issues.apache.org/jira/browse/SLING-2156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13163579#comment-13163579 ]
Ben Peter commented on SLING-2156:
----------------------------------
Justin,
+1 for your proposed patch.
( line 242 in [1] should test for response != null, though I guess).
[1] http://codereview.appspot.com/4826051/diff/1/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/SlingPostServlet.java
Best,
Ben
> 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
> Attachments: SLING-2156-patch.txt, SLING-2156-patch.txt, SLING-2156-patch.txt, SLING-2156-patch.txt, post_error_handling
>
>
> 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.
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