Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-2154

Use expanded form for Path.getString()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0-alpha1
    • None
    • jackrabbit-spi
    • None

    Description

      Currently the internal string representation of a path consists of extended path segments which are tab (\t) delimited.
      since JCR2.0, JCR input names can also be specified in an expanded form (see JCR 2.0, 3.2.5.1).

      i think it would make sense to use the expanded form also for internal string representation of paths, which is defined by the spec, is more natural and more readable

      current:
      {}

      {http://www.apache.org/jackrabbit/test}

      testPath
      suggested:
      /

      {http://www.apache.org/jackrabbit/test}

      testPath

      of course, the PathFactory needs to be backward compatible, since the path property values are persisted in the current toString() representation.

      if this is too much of a change, or if there are any valid reasons why the tab-delimited form is needed, we should at least add a new method to Path:

      String getExpandedString()

      that returns the expanded form representation of the path.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tripod Tobias Bocanegra
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: