You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2008/02/27 10:45:52 UTC

[jira] Commented: (SLING-273) ujax post servlet aborts processing if item names are invalid

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

Bertrand Delacretaz commented on SLING-273:
-------------------------------------------

Wouldn't it be better to fail more loudly, with a 500 error?

My concern is that people might not check the detailed results in the HTML response to the POST, and might miss the problem.

Failing with a 500 and a descriptive enough error message (structured maybe) would be safer IMHO, but if you have a valid use case for your variant, I'm open to hear it.

> ujax post servlet aborts processing if item names are invalid
> -------------------------------------------------------------
>
>                 Key: SLING-273
>                 URL: https://issues.apache.org/jira/browse/SLING-273
>             Project: Sling
>          Issue Type: Bug
>          Components: microsling
>            Reporter: Tobias Bocanegra
>         Attachments: ujax_error_fix.r630238.patch
>
>
> example:
> POST /content/test
> ujax:delete = "foo:test"
> returns:
>   javax.jcr.NamespaceException: foo: is not a registered namespace prefix.
> of course the value of the param is wrong. but imo it should ignore it (or log an error in the changelog) and continue processing.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.