sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konrad Windszus (JIRA)" <>
Subject [jira] [Created] (SLING-7924) ValidationModelRetriever does not correctly evaluate "applicable path"
Date Thu, 13 Sep 2018 20:01:00 GMT
Konrad Windszus created SLING-7924:

             Summary: ValidationModelRetriever does not correctly evaluate "applicable path"
                 Key: SLING-7924
             Project: Sling
          Issue Type: Bug
          Components: Validation
    Affects Versions: Validation Core 1.0.4
            Reporter: Konrad Windszus
            Assignee: Konrad Windszus
             Fix For: Validation Core 1.0.6

Currently in []
there is a PatriciaTrie from Apache Commons Collections being used to figure out the validation
model bound to a specific resource with the most specific applicable path which still matches.

This does not work as the method {{PatriciaTrie.subMap}} returns all keys which are less than
the given path according to lexicographical ordering.

That means, in case the trie would contain entries for "/", and "/a/b", a lookup for "/a/c"
would return "/a/b" although the latter does not start with the former.

This message was sent by Atlassian JIRA

View raw message