Skip to main content
JakeCham
Level 6
12월 27, 2023 10:00 오후 UTC
해결됨

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

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.

이 주제는 답변이 닫혔습니다.
aanchal-sikka
Community Advisor
12월 28, 2023 4:17 오전 UTC

@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

3 답변

narendragandhi
Community Advisor
Community Advisor
12월 27, 2023 10:17 오후 UTC

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

번역
Raja_Reddy
Community Advisor
Community Advisor
12월 28, 2023 4:17 오전 UTC

Hi @jakecham, 

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

 

Thanks.

번역
aanchal-sikka
Community Advisor
Community Advisor
12월 28, 2023 4:17 오전 UTC

@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