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 "angela (JIRA)" <ji...@apache.org> on 2012/10/09 20:24:03 UTC

[jira] [Updated] (OAK-369) missing support for relative path consisting of parent-element

     [ https://issues.apache.org/jira/browse/OAK-369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

angela updated OAK-369:
-----------------------

    Description: 
could not reopen OAK-95 -> cloning.
during testing of user-mgt api found that relpath consisting of a single parent element doesn't work (but used to):

@Test
    public void getNode3() throws RepositoryException {
        Node node = getNode("/foo");
        Node root = node.getNode("..");
        assertNotNull(root);
        assertEquals("", root.getName());
        assertTrue("/".equals(root.getPath()));
    }

  was:
Persisting paths in properties of type "path" requires that we can round-trip relative JCR paths through the oak-core persistence, such as

  ../foobar

or

  .

Note that these paths still need prefix remapping so that they are stable with respect to session prefix remappings.

    
> missing support for relative path consisting of parent-element
> --------------------------------------------------------------
>
>                 Key: OAK-369
>                 URL: https://issues.apache.org/jira/browse/OAK-369
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>            Reporter: angela
>            Priority: Minor
>             Fix For: 0.3
>
>
> could not reopen OAK-95 -> cloning.
> during testing of user-mgt api found that relpath consisting of a single parent element doesn't work (but used to):
> @Test
>     public void getNode3() throws RepositoryException {
>         Node node = getNode("/foo");
>         Node root = node.getNode("..");
>         assertNotNull(root);
>         assertEquals("", root.getName());
>         assertTrue("/".equals(root.getPath()));
>     }

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