Which attribute must be present in all filter rules in AEM dispatcher configuration? | Community
Skip to main content
JakeCham
New Participant
December 27, 2023
Solved

Which attribute must be present in all filter rules in AEM dispatcher configuration?

  • December 27, 2023
  • 3 replies
  • 1389 views

Hi Team,

 

Expecting the correct answer.

 

Which attribute must be present in all filter rules in AEM dispatcher configuration?

1. /glob

2. /type

3. /url

 

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by aanchal-sikka

@jakecham 

 

A filter is meant to convey allow or deny. So, /type is required.

 

/url and /glob are for pattern matching. Filtering with globs is deprecated in Dispatcher. As such, you should avoid using globs in the /filter sections since it may lead to security issues. So, instead of:

/glob "* *.css *"

use

/url "*.css"

 

So, you can use either of them or use /path instead. refer to https://blog.developer.adobe.com/writing-better-aem-dispatcher-filters-f23b391624a9 

 

3 replies

aanchal-sikka
aanchal-sikkaAccepted solution
New Participant
December 28, 2023

@jakecham 

 

A filter is meant to convey allow or deny. So, /type is required.

 

/url and /glob are for pattern matching. Filtering with globs is deprecated in Dispatcher. As such, you should avoid using globs in the /filter sections since it may lead to security issues. So, instead of:

/glob "* *.css *"

use

/url "*.css"

 

So, you can use either of them or use /path instead. refer to https://blog.developer.adobe.com/writing-better-aem-dispatcher-filters-f23b391624a9 

 

Aanchal Sikka
Raja_Reddy
New Participant
December 28, 2023

Hi @jakecham

The AEM dispatcher configuration attribute that must be present in all filter rules is "/type" only.

 

Thanks.

narendragandhi
New Participant
December 27, 2023

Hello,

 

You can refer the official dispatcher documentation for details - https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/dispatcher-configuration.html?lang=en#configuring-access-to-content-filter, but it looks to be the /type attribute that must be present in all filter rules.

 

Thanks

Narendra