You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Stefan Guggisberg (JIRA)" <ji...@apache.org> on 2008/02/22 12:42:21 UTC

[jira] Created: (JCR-1409) PathFactoryImpl creates illegal Path objects

PathFactoryImpl creates illegal Path objects
--------------------------------------------

                 Key: JCR-1409
                 URL: https://issues.apache.org/jira/browse/JCR-1409
             Project: Jackrabbit
          Issue Type: Bug
          Components: jackrabbit-spi-commons
            Reporter: Stefan Guggisberg


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());



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (JCR-1409) PathFactoryImpl creates illegal Path objects

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-1409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting updated JCR-1409:
-------------------------------

    Fix Version/s: 1.5

> PathFactoryImpl creates illegal Path objects
> --------------------------------------------
>
>                 Key: JCR-1409
>                 URL: https://issues.apache.org/jira/browse/JCR-1409
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-spi-commons
>            Reporter: Stefan Guggisberg
>            Assignee: angela
>             Fix For: 1.5
>
>
> 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());

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (JCR-1409) PathFactoryImpl creates illegal Path objects

Posted by "angela (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-1409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

angela resolved JCR-1409.
-------------------------

    Resolution: Fixed
      Assignee: angela

fixed with JCR-1526

> PathFactoryImpl creates illegal Path objects
> --------------------------------------------
>
>                 Key: JCR-1409
>                 URL: https://issues.apache.org/jira/browse/JCR-1409
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-spi-commons
>            Reporter: Stefan Guggisberg
>            Assignee: angela
>
> 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());

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.