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

PathFactoryImpl creates illegal Path objects

    XMLWordPrintableJSON

Details

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

    Description

      it is currently possible to create illegal/inconsistent paths using the default path factory.
      Path objects are expected to represent syntactically correct paths.

      some examples:

      PathFactory pf = PathFactoryImpl.getInstance();
      Path.Element re = pf.getRootElement();
      Path illegalPath = pf.create(new Path.Element[]

      {re, re}

      );

      Path.Element pe = pf.getParentElement();
      Path nonNormalizedPath = pf.create(new Path.Element[]

      {pe, pe}

      ); // "../.."
      assertFalse(nonNormalizedPath.isNormalized());

      Attachments

        Issue Links

          Activity

            People

              angela Angela Schreiber
              stefan@jira Stefan Guggisberg
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: