You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Michael Dürig (JIRA)" <ji...@apache.org> on 2013/02/27 10:37:13 UTC
[jira] [Commented] (OAK-658) Unexpected illegal path handling on
oak-jcr
[ https://issues.apache.org/jira/browse/OAK-658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13588171#comment-13588171 ]
Michael Dürig commented on OAK-658:
-----------------------------------
I think the client expectations are wrong here and the {{IllegalArgumentException}} is perfectly fine. See the discussion around OAK-563 and JCR-3497.
> Unexpected illegal path handling on oak-jcr
> -------------------------------------------
>
> Key: OAK-658
> URL: https://issues.apache.org/jira/browse/OAK-658
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: jcr
> Reporter: Alex Parvulescu
> Assignee: Alex Parvulescu
> Priority: Minor
> Attachments: SessionDelegate.java.patch
>
>
> Given an illegal path like ' * ' oak-core throws an
> bq. java.lang.IllegalArgumentException: Invalid path: /GetStarTest1361806728422/*
> which may confuse clients of oak-jcr (like sling) which expect to see a RepositoryException.
> I've seen this on the sling integration test
> bq. org.apache.sling.launchpad.webapp.integrationtest.servlets.post.PostServletCreateTest.testCreatingNodeUnderFile
> which issues a get request for /GetStarTest1361806728422/*.12.json
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira