You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Stefan Guggisberg (JIRA)" <ji...@apache.org> on 2012/06/29 14:33:42 UTC
[jira] [Created] (JCR-3366) incorrect handling of leading '{' in
jcr names
Stefan Guggisberg created JCR-3366:
--------------------------------------
Summary: incorrect handling of leading '{' in jcr names
Key: JCR-3366
URL: https://issues.apache.org/jira/browse/JCR-3366
Project: Jackrabbit Content Repository
Issue Type: Bug
Components: jackrabbit-spi-commons
Reporter: Stefan Guggisberg
the following code throws a (misleading) exception:
{code}session.getRootNode().addNode("{foo");{code}
the root cause of the exception is that "{foo" is not correctly parsed by
{code}o.a.j.spi.commons.name.PathParser{code}
{code}PathParser.checkFormat("{foo"){code} succeeds,
but {code}PathParser.parse("{foo", resolver, factory){code} throws a {code}MalformedPathException: empty path{code}
{code}NameParser{code} OTOH seems to correctly handle non-expandedform names with leading '{'.
--
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