Permission sensitive servlet not called for images | Community
Skip to main content
aanchal-sikka
Community Advisor
Community Advisor
April 22, 2023
Solved

Permission sensitive servlet not called for images

  • April 22, 2023
  • 1 reply
  • 621 views

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

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 arunpatidar

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?

 

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
April 24, 2023

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