Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Configure dispatcher for permission-sensitive caching

Avatar

Level 4

Hi,

We are doing permission sensitive caching implementation as detailed out int the link - https://docs.adobe.com/docs/en/dispatcher/permissions-cache.html but we are facing a situation... The dispatcher's auth_checker integrates perfectly with the Authentication Servlet as specified in the auth_checker configuration. But even after dispatcher logs a "Filter rejects" message for the specific URL, it still shows up in the browser instead of 403

This behavior which I feel is probably of Apache is pretty confusing. Any insights what is missing between the configuration between httpd.conf and dispatcher.any?

Environment: Windows 7 64 bit, Apache 2.2, dispatcher version (dispatcher-apache2.2-windows-x86-4.1.12) and AEM 6 publish.

Regards,

Anil

2 Replies

Avatar

Level 2

Hi,

can you share some dispatcher logs, which show such a situation?

Jörg

Avatar

Level 4

Jörg Hoh wrote...

Hi,

can you share some dispatcher logs, which show such a situation?

Jörg

 

[Thu Jun 02 00:04:10 2016] [D] [12828(844)] Found farm website for localhost
[Thu Jun 02 00:04:10 2016] [D] [12828(844)] checking [/home/test2/sample.pdf]
[Thu Jun 02 00:04:10 2016] [D] [12828(844)] Authorization checker: connected to backend rend01 (127.0.0.1:4503)
[Thu Jun 02 00:04:10 2016] [D] [12828(844)] Authorization checker: backend answered with status code: 403
[Thu Jun 02 00:04:10 2016] [I] [12828(844)] authorization checker denied access: D:\Projects\Merck\Apache22\htdocs\home\test2\sample.pdf
[Thu Jun 02 00:04:10 2016] [D] [12828(844)] cache-action for [/home/test2/sample.pdf]: NONE
[Thu Jun 02 00:04:10 2016] [D] [12828(844)] Filter rejects: GET /home/test2/sample.pdf HTTP/1.1
[Thu Jun 02 00:04:10 2016] [I] [12828(844)] "GET /home/test2/sample.pdf" - - 65ms
[Thu Jun 02 00:04:10 2016] [D] [12828(844)] Found farm website for localhost
[Thu Jun 02 00:04:10 2016] [D] [12828(844)] checking [/home/test2/sample.pdf]
[Thu Jun 02 00:04:10 2016] [D] [12828(844)] Authorization checker: connected to backend rend01 (127.0.0.1:4503)
[Thu Jun 02 00:04:10 2016] [D] [12828(844)] Authorization checker: backend answered with status code: 403
[Thu Jun 02 00:04:10 2016] [I] [12828(844)] authorization checker denied access: D:\Projects\Merck\Apache22\htdocs\home\test2\sample.pdf
[Thu Jun 02 00:04:10 2016] [D] [12828(844)] cache-action for [/home/test2/sample.pdf]: NONE
[Thu Jun 02 00:04:10 2016] [D] [12828(844)] Filter rejects: GET /home/test2/sample.pdf HTTP/1.1
[Thu Jun 02 00:04:10 2016] [I] [12828(844)] "GET /home/test2/sample.pdf" - - 27ms