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

Fix unexpected behavior of Text.getName()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.5
    • jackrabbit-jcr-commons
    • None

    Description

      Text.getName() and variants does return an empty string, if the given path is already a name. eg:

      Text.getName("foo") returns "" and not "foo" as one would expect for relative paths.
      suggest to change this.

      Attachments

        1. jcr1706.r682409.patch
          2 kB
          Tobias Bocanegra

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: