[dna-issues] [JBoss JIRA] Commented: (DNA-299) Path.isNormalized() is incorrect if the path begins with parent reference(s)
Randall Hauch (JIRA)
jira-events at lists.jboss.org
Thu Mar 12 15:20:22 EDT 2009
[ https://jira.jboss.org/jira/browse/DNA-299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12457010#action_12457010 ]
Randall Hauch commented on DNA-299:
-----------------------------------
Added the tests to verify it was failing, then corrected the logic in all Path implementations (although RootPath was correct, since it always considered itself normalized).
> Path.isNormalized() is incorrect if the path begins with parent reference(s)
> ----------------------------------------------------------------------------
>
> Key: DNA-299
> URL: https://jira.jboss.org/jira/browse/DNA-299
> Project: DNA
> Issue Type: Bug
> Components: API, Graph
> Affects Versions: 0.3
> Reporter: Randall Hauch
> Assignee: Randall Hauch
> Fix For: 0.4
>
>
> The different implementations of Path consider a path that begins with a one or more parent references as not normalized. For example, "../a" should be considered normalized, but it is not. Normalized means that there are no self-reference segments (e.g., "."), and that all parent references that can be removed are removed. Therefore, "../a" should be normalized, whereas "/../a" is not normalized.
> There were no unit tests that covered these conditions.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the dna-issues
mailing list