Ok. Thanks. It must be a version thing, because org.apache.sling.engine.EngineConstants.SLING_FILTER_SUFFIX_PATTERN is not found in my local maven repository or IDE. It’s odd because the bundle (org.apache.sling.engine) says is 2.6.16 (using /system/console/bundles). When I expand the bundle details, I see lower versions.
Bundle Location launchpad:resources/install/0/org.apache.sling.engine-2.6.6.jar Exported Packages org.apache.sling.engine,version=2.3.0 > On Mar 29, 2019, at 12:07 PM, Robert Munteanu <[email protected]> wrote: > > On Fri, 2019-03-29 at 10:47 -0400, Cris Rockwell wrote: >> 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. > > Hi Cris, > > I think this is used at > > > https://github.com/apache/sling-org-apache-sling-engine/blob/f2ddb41a68551e6d27a143bca00fb267d7af2230/src/main/java/org/apache/sling/engine/impl/filter/FilterPredicate.java#L67 > > Robert >
