Jackrabbit Oak
  1. Jackrabbit Oak
  2. OAK-95

path mapping needs to deal with relative paths

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.3
    • Component/s: jcr
    • Labels:
      None

      Description

      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.

      1. OAK-95.patch
        6 kB
        Michael Dürig

        Issue Links

          Activity

          Julian Reschke created issue -
          Hide
          Michael Dürig added a comment -
          Show
          Michael Dürig added a comment - See discussion on @oak-dev: http://markmail.org/message/yfloqezxz7eb32rl
          Hide
          Michael Dürig added a comment -

          proposed patch to deal with . and .. elements

          Show
          Michael Dürig added a comment - proposed patch to deal with . and .. elements
          Michael Dürig made changes -
          Field Original Value New Value
          Attachment OAK-95.patch [ 12526339 ]
          Hide
          Michael Dürig added a comment -

          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

          Show
          Michael Dürig added a comment - 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
          Julian Reschke made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 0.3 [ 12320345 ]
          Resolution Fixed [ 1 ]
          Julian Reschke made changes -
          Link This issue is part of OAK-61 [ OAK-61 ]
          Alex Parvulescu made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          angela made changes -
          Link This issue is cloned as OAK-369 [ OAK-369 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Julian Reschke
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development