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
SOLVED

Permission sensitive servlet not called for images

Avatar

Community Advisor

Hello,

 

We have configured permission sensitive caching on AEM as a cloud service. It is working for pages, but not for images.(Caching on CDN is disabled.)

From logs it appears that the auth checker servlet isn't called for images.

 

Example: https://localhost:8080/content/dam/secure/app1/en/activities/skiing/alpinists-rochefort-ridge.jpg

 

/auth_checker {
# request is sent to this URL with '?uri=<page>' appended
/url "/bin/permissioncheck"
# only the requested pages matching the filter section below are checked, all other pages get delivered unchecked
/filter {
/0000 {
/glob "*"
/type "deny"
}
/0001 {
/glob "/content/dam/secure/*.jpg"
/type "allow"
}
/0002 {
/glob "/content/wknd/us/en/magazine/*.html"
/type "allow"
}
}
# any header line returned from the auth_checker's HEAD request matching the section below will be returned as well
/headers {
/0000 {
/glob "*"
/type "deny"
}
/0001 {
/glob "Set-Cookie:*"
/type "allow"
}
}
}

 I hope PSC is supported for images. Requesting suggestion on how to fix the same


Aanchal Sikka

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

HI @aanchal-sikka 
Yes, PSC caching supporting for all type requests.

but the PS servlet will only be called if images/content is in cache. Can you please check if images are cached?

 



Arun Patidar

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

HI @aanchal-sikka 
Yes, PSC caching supporting for all type requests.

but the PS servlet will only be called if images/content is in cache. Can you please check if images are cached?

 



Arun Patidar