Hi all

I want to follow up with a question I sent the group last year about using a 
suffix patterns when defining Sling Filters. 
http://apache-sling.73963.n3.nabble.com/Can-Suffix-be-used-in-the-Sling-Filter-Pattern-td4084561.html
 
<http://apache-sling.73963.n3.nabble.com/Can-Suffix-be-used-in-the-Sling-Filter-Pattern-td4084561.html>

The email response at the time was that Suffix patterns cannot be used to 
define a filter, and the advice was to check the suffix within the filter 
itself. If this is the case, then why does the documentation describe 
sling.filter.suffix.pattern as "Restrict the filter to requests with suffix 
that match the supplied regular expression. Requires Sling Engine 2.6.14.”

https://sling.apache.org/documentation/the-sling-engine/filters.html 
<https://sling.apache.org/documentation/the-sling-engine/filters.html>
Using org.apache.sling.engine 2.6.16, I have not had any luck configuring 
sling.filter.suffix.pattern. If this feature is not available or not working, I 
would recommend updating docs and removing it. Also, I would like to review the 
source code to see how the sling.filter.suffix.pattern was intended to be used, 
but I cannot find it. Please send a link if you can.

Thanks!
Cris


> On Jul 11, 2018, at 4:45 AM, Nicolas Peltier <[email protected]> 
> wrote:
> 
> Hi Cris,
> 
> Not there is not, you have to test the suffix in the filter itself. 
> 
> Nicolas
> 
> On 11/07/2018 03:26, "Cris Rockwell" <[email protected]> wrote:
> 
>    Hi all
> 
>    Was trying to register a filter by including the path, extension and 
> suffix. 
>       EngineConstants.SLING_FILTER_PATTERN + 
> "=/content/site/getting-started.html/callback/.*”
> 
>    Its not working. Doing internet searches I found 
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FSLING-7759&amp;data=02%7C01%7Cnpeltier%40adobe.com%7Cb7cfc82d66b5462c7d9708d5e6cd4c43%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636668691772904210&amp;sdata=lSSkbjS5MnMK2IiwewwsJ3Rgh4vPPvZy%2BtkBBHTdnmk%3D&amp;reserved=0
>  
> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FSLING-7759&amp;data=02%7C01%7Cnpeltier%40adobe.com%7Cb7cfc82d66b5462c7d9708d5e6cd4c43%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636668691772904210&amp;sdata=lSSkbjS5MnMK2IiwewwsJ3Rgh4vPPvZy%2BtkBBHTdnmk%3D&amp;reserved=0>
>    So as of now, there is no way to include a suffix in a Servlet Filter 
> pattern?
> 
>    Thanks
>    Cris Rockwell
> 
> 
> 
> 
> 

Reply via email to