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

Tobias Bocanegra commented on SLING-273:
----------------------------------------

well i agree in general. but in case of the delete, there is no error thrown if 
the element does not exist.
so imo a namespace exception of a missing prefix is comparable to the item not 
found.

eg: deleting /foo/bar/not_exsiting
vs: deleting /foo/bar/my:not_existing  (if 'my' namespace not defined)


> 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.

Reply via email to