You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Robert Munteanu (Jira)" <ji...@apache.org> on 2021/11/18 10:30:00 UTC

[jira] [Commented] (SLING-4413) :applyTo should send 403 instead of 500 when operation fails

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

Robert Munteanu commented on SLING-4413:
----------------------------------------

[~joerghoh] - is this covered by the recent Sling POST servlet improvements that you submitted?

> :applyTo should send 403 instead of 500 when operation fails 
> -------------------------------------------------------------
>
>                 Key: SLING-4413
>                 URL: https://issues.apache.org/jira/browse/SLING-4413
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets
>    Affects Versions: Servlets Post 2.3.6
>            Reporter: Lars Krapf
>            Priority: Minor
>
> Example:
> curl -vv curl -F":operation=delete" -F":applyTo=/etc/*" http://localhost:4502/content/geometrixx
> Will give you a 500 (PersistenceException) in case /etc/* is not writable to the request session - as discussed with Felix & Carsten this should rather be a 403.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)