You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by "Julian Reschke (JIRA)" <ji...@apache.org> on 2012/05/10 15:01:50 UTC

[jira] [Created] (OAK-95) path mapping needs to deal with relative paths

Julian Reschke created OAK-95:
---------------------------------

             Summary: path mapping needs to deal with relative paths
                 Key: OAK-95
                 URL: https://issues.apache.org/jira/browse/OAK-95
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: jcr
            Reporter: Julian Reschke
            Priority: Minor


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.

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

        

[jira] [Updated] (OAK-95) path mapping needs to deal with relative paths

Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OAK-95?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Dürig updated OAK-95:
-----------------------------

    Attachment: OAK-95.patch

proposed patch to deal with . and .. elements
                
> path mapping needs to deal with relative paths
> ----------------------------------------------
>
>                 Key: OAK-95
>                 URL: https://issues.apache.org/jira/browse/OAK-95
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>            Reporter: Julian Reschke
>            Priority: Minor
>         Attachments: OAK-95.patch
>
>
> 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.

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

       

[jira] [Commented] (OAK-95) path mapping needs to deal with relative paths

Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OAK-95?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13272303#comment-13272303 ] 

Michael Dürig commented on OAK-95:
----------------------------------

See discussion on @oak-dev: http://markmail.org/message/yfloqezxz7eb32rl
                
> path mapping needs to deal with relative paths
> ----------------------------------------------
>
>                 Key: OAK-95
>                 URL: https://issues.apache.org/jira/browse/OAK-95
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>            Reporter: Julian Reschke
>            Priority: Minor
>
> 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.

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

       

[jira] [Resolved] (OAK-95) path mapping needs to deal with relative paths

Posted by "Julian Reschke (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OAK-95?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Reschke resolved OAK-95.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 0.3
    
> path mapping needs to deal with relative paths
> ----------------------------------------------
>
>                 Key: OAK-95
>                 URL: https://issues.apache.org/jira/browse/OAK-95
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>            Reporter: Julian Reschke
>            Priority: Minor
>             Fix For: 0.3
>
>         Attachments: OAK-95.patch
>
>
> 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.

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

        

[jira] [Commented] (OAK-95) path mapping needs to deal with relative paths

Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OAK-95?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13272306#comment-13272306 ] 

Michael Dürig commented on OAK-95:
----------------------------------

The proposed patch normalizes paths as much as possible. Such a path has no current elements (.) and parent elements (..) only in leading position.

Some Examples:
a/./b -> a/b
../a/b -> ../a/b
a/../b -> b
/a/../../b -> ../b
                
> path mapping needs to deal with relative paths
> ----------------------------------------------
>
>                 Key: OAK-95
>                 URL: https://issues.apache.org/jira/browse/OAK-95
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>            Reporter: Julian Reschke
>            Priority: Minor
>         Attachments: OAK-95.patch
>
>
> 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.

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