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

incorrect handling of leading '{' in jcr names

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • jackrabbit-spi-commons
    • None

    Description

      the following code throws a (misleading) exception:

      session.getRootNode().addNode("{foo");

      the root cause of the exception is that "{foo" is not correctly parsed by

      o.a.j.spi.commons.name.PathParser
      PathParser.checkFormat("{foo")

      succeeds,
      but

      PathParser.parse("{foo", resolver, factory)

      throws a

      MalformedPathException: empty path
      NameParser

      OTOH seems to correctly handle non-expandedform names with leading '{'.

      Attachments

        Activity

          People

            Unassigned Unassigned
            stefan@jira Stefan Guggisberg
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: