Issues in Permission Sensitive Caching | Community
Skip to main content
Gunalan_V
Level 3
April 12, 2018
Question

Issues in Permission Sensitive Caching

  • April 12, 2018
  • 5 replies
  • 1702 views

Hello,

We have configured SAML for the directory /content/ and enabled auth_checker for all the *.pdf files in AEM 6.2

So, In new session when we hit the pdf URL directly in browser for first time (no cache) it's redirecting to IDP page correctly but when the file is already in cache and if we hit that pdf URL in browser it's trying to invoke auth_checker service (/bin/permissioncheck.html) with the SAML enabled url path [1] but it's getting 302 redirect to AEM login instead of IDP redirect.

It's redirecting fine when there is no cache created. Can some one please let me know if any other configuration need to enabled specifically for this auth_checker scenario.

[1]

https://stage.test.com/libs/granite/core/content/login.html?resource=%2Fbin%2Fpermissioncheck.html%3Furi%3D%2Fcontent%2Fdam%2Fdocuments%2Fus%2F%252bProcess%252bUpdate%252bNPSB13_121.pdf&$$login$$=%24%24login%24%24&j_reason=unknown&j_reason_code=unknown

Thanks,

GVK

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

5 replies

smacdonald2008
Level 10
April 12, 2018

Have you used the AEM Dispatcher here?

Gunalan_V
Gunalan_VAuthor
Level 3
April 12, 2018

Yes Scott! We are using AEM dispatcher.

kautuk_sahni
Community Manager
Community Manager
May 8, 2018

Jörg Hoh​ If you can offer some help here!!

Kautuk Sahni
joerghoh
Adobe Employee
Adobe Employee
May 8, 2018

Hm, I would expect that the dispatcher forwards all responses with a statuscode != 200 to the browser (and on 200 deliver the file from cache). Doesn't seem to be the case here.

Can you increase the loglevel of the dispatcher to DEBUG and do the test again? There should be additional logging.

Jörg

Level 3
October 29, 2023

Hi Gunalan,

I also faced the same issue recently.
Could you please let me know how the issue is resolved.