Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

TB3dock
TB3dock
Online

Badges

Badges
33

Accepted Solutions

Accepted Solutions
8

Likes Received

Likes Received
91

Posts

Posts
312

Discussions

Discussions
80

Questions

Questions
228

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by TB3dock
Customize the badges you want to showcase on your profile
Re: which filter is run first, lower or higher order/priority/ranking number? - Adobe Experience Manager 20-08-2022
Due to conflicting documentation, I added debug statements to see what was happening. the answer is in fact a), so it appears that @SantoshSai could be wrong, and @arunpatidar could be right, at least for the current AEM cloud local dev environment.

Views

12

Likes

0

Replies

0
Re: which filter is run first, lower or higher order/priority/ranking number? - Adobe Experience Manager 19-08-2022
FYI, we are using cloud AEM, so presumably we dont have any say in which sling version is used.

Views

24

Likes

0

Replies

0
Re: which filter is run first, lower or higher order/priority/ranking number? - Adobe Experience Manager 19-08-2022
Unfortunately, this is opposite to what @SantoshSai is saying?

Views

24

Likes

0

Replies

0
Re: which filter is run first, lower or higher order/priority/ranking number? - Adobe Experience Manager 19-08-2022
Unfortunately, this is opposite to what @arunpatidar  is saying?

Views

24

Likes

0

Replies

0
which filter is run first, lower or higher order/priority/ranking number? - Adobe Experience Manager 18-08-2022
you can specify the "ranking", "prioritisation" or "order" (called different things in different places) using this: @ServiceRanking(-200) The give the following situation: 600 : class com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet (id: 2255, property: service.ranking=600); called: 23; time: 97ms; time/call: 4217µs0 : class com.adobe.aem.graphql.sites.ui.admin.impl.FeatureToggleFilter (id: 1373, property: none); called: 0; time: 122ms; time/call: -1µs which is run first, the filter wi...

Views

52

Likes

0

Replies

6
Re: How to specify the order of filters in AEM? - Adobe Experience Manager 18-08-2022
I found the solution, and it seems to work: @component @SlingServletFilter( scope = { SlingServletFilterScope.REQUEST }, pattern = "/bin/api/.*", methods = { "GET", "POST" } ) @ServiceRanking(-200) @Designate(ocd = CorrelationLoggingFilter.Config.class) The next question is which fitler is run first, lower or higher order/priority/ranking number?

Views

20

Likes

0

Replies

0
Re: is there any tool or way to see the order that filters are applied in? (AEM cloud) - Adobe Experience Manager 18-08-2022
I think I found the answer. Cloud AEM offers no way to see the filter order, everything is blocked. Locally, if you run publisher and hit this URL logging in with admin/admin: http://localhost:4503/system/console/status-slingfilter you get this list: Request Filters: 2147483647 : class com.adobe.granite.resourceresolverhelper.impl.ResourceResolverHelperImpl (id: 1292, property: service.ranking=2147483647); called: 23; time: 0ms; time/call: 0µs 2147483647 : class org.apache.sling.distribution.ser...

Views

15

Likes

0

Replies

0
is there any tool or way to see the order that filters are applied in? (AEM cloud) - Adobe Experience Manager 18-08-2022
We have an issue that our filters seem to be in incorrect order. We have heard there is a tool to view this on a per request basis. Any ideas where this tool might be? Doesnt seem to be in dev console, cloud admin console or cloud manager. I also tried our-autor-url/system/console/config and our-author-url/system/console/requests But both of these give 403

Views

25

Likes

0

Replies

1
Re: How to specify the order of filters in AEM? - Adobe Experience Manager 18-08-2022
FYI, we are not using this type of annotation, as its not clear how we convert form the annotations we are using to these different ones, and they appear to be incompatible (we dont know how to combine the two types). We are looking for a solution we an add to our exsting code.

Views

28

Likes

0

Replies

1
Re: How to specify the order of filters in AEM? - Adobe Experience Manager 18-08-2022
We have found this annotation: @ServiceRanking So we are guessing this might work: @SlingServletFilter( scope = { SlingServletFilterScope.REQUEST }, pattern = "/bin/api/.*", methods = { "GET", "POST" } ) @ServiceRanking( value = 1000) @Designate(ocd = CorrelationLoggingFilter.Config.class) public class CorrelationLoggingFilter implements Filter { The question is, how do we see the order of the existing servlets which dont have rankings? is there some sort of tool, or do we need to add a lot of d...

Views

28

Likes

0

Replies

0