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 "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2012/09/19 12:52:07 UTC
[jira] [Updated] (OAK-313) Trailing slash not removed for simple
path in JCR to Oak path conversion
[ https://issues.apache.org/jira/browse/OAK-313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chetan Mehrotra updated OAK-313:
--------------------------------
Attachment: OAK-313.patch
Patch and testcase to remove trailing slash.
As a minor change I have also moved the creation of elements and parseErrors to later part to avoid creation of the two objects for simple cases
> Trailing slash not removed for simple path in JCR to Oak path conversion
> ------------------------------------------------------------------------
>
> Key: OAK-313
> URL: https://issues.apache.org/jira/browse/OAK-313
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: jcr
> Affects Versions: 0.5
> Reporter: Chetan Mehrotra
> Priority: Minor
> Attachments: OAK-313.patch
>
>
> While converting from JCR path to Oak path the trailing slashes are not removed for simple paths. They are removed for complex path
> {code}
> assertEquals("/oak-foo:bar/oak-quu:qux",npMapper.getOakPath("/foo:bar/quu:qux/"));
> assertEquals("/a/b/c",npMapper.getOakPath("/a/b/c/"));
> }
> {code}
> Of the two cases above the first one passes while the second one fails
--
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