sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothee Maret (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SLING-6781) VltUtils only keep the last filter for a given path
Date Thu, 13 Apr 2017 15:13:42 GMT
Timothee Maret created SLING-6781:
-------------------------------------

             Summary: VltUtils only keep the last filter for a given path
                 Key: SLING-6781
                 URL: https://issues.apache.org/jira/browse/SLING-6781
             Project: Sling
          Issue Type: Bug
          Components: Content Distribution
    Affects Versions: Content Distribution Core 0.2.6
            Reporter: Timothee Maret
            Assignee: Timothee Maret
             Fix For: Content Distribution Core 0.2.8


The utility method VltUtils#parseFilters [0] does not merge the definitions for the same path.
As an example providing the filters

{code}
new String[]{"/home/users|-.*/.tokens","/home/users|-.*/.rep:cache"}
{code}
will return a tree map with only one entry ({{.*/.rep:cache}}) for the path {{/home/users}}).

[0] https://github.com/apache/sling/blob/trunk/contrib/extensions/distribution/core/src/main/java/org/apache/sling/distribution/serialization/impl/vlt/VltUtils.java#L305-L338




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message