]
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: