sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bertrand Delacretaz (JIRA)" <>
Subject [jira] [Commented] (SLING-7759) add other "patterns" than path for filters
Date Mon, 02 Jul 2018 13:55:00 GMT


Bertrand Delacretaz commented on SLING-7759:

It might make sense to factor our the matching code, but I think the semantics are different
between filters and servlets: a request is processed by a single servlet, which is the winner
among possible candidates, whereas the activation of each filter is independent of other filters.

> add other "patterns" than path for filters
> ------------------------------------------
>                 Key: SLING-7759
>                 URL:
>             Project: Sling
>          Issue Type: Improvement
>          Components: Engine
>    Affects Versions: Engine 2.6.12
>            Reporter: Nicolas Peltier
>            Assignee: Nicolas Peltier
>            Priority: Major
> adding additional patterns to filters (right now {{sling.filter.pattern}} allows to include
them based on path only):
> - path passes if sling.filter.pattern (i propose we keep it for legacy &  add sling.filter.pattern.path
for consistency with what follow) regexp matches current path,
> - selector passes if sling.filter.pattern.selector is in the selector chain,
> - method passes if sling.filter.pattern.method is equals to curren method,
> - suffix  passes if sling.filter.pattern.suffix regep matches current suffix

This message was sent by Atlassian JIRA

View raw message