How to get a 403 error when trying to access a CUGs protected DAM asset?
setup/configuration
- using OKTA SSO which I configured using the SAML authentication configuration
- Looking at the code base and CRXDE, I can see we are using ACS commons error handling.
- I can only see a 404.jsp and a default.jsp in /apps/sling/servlet/errorhandler
- I have a 403.html, 404.html and default.html in /content/mysite/en/errors. This path has been configured in com.adobe.acs.commons.errorpagehandler.impl.ErrorPageHandlerImpl.xml
- I have several custom user groups in AEM. These includes role-customer, role-staff, role-contractor and many others.
- I'm a member of the role-staff.
test I've done
- I CUGs protected a published page and all groups can access the page. I can view the published page.
- I CUGs protected a published page and restricted access to only role-staff. I can view the published page.
- I CUGs protected a published page and restricted access to only role-contractor. I visited the page and I got the 403 page. A 403 is the the expected result.
- I CUGs protected a DAM folder (/content/dam/documents/myfolder) and all groups can access the folder. I can view one of the PDFs inside the folder.
- I CUGs protected a DAM folder (/content/dam/documents/myfolder) and gave access to role-staff only. I can view one of the PDFs inside the folder.
- I CUGs protected a DAM folder (/content/dam/documents/myfolder) with access to only role-contractor. I tried viewing one of the PDFs inside the folder and I got a 404 error instead of a 403.
I looked at https://adobe-consulting-services.github.io/acs-aem-commons/features/error-handler/index.html and there doesn't seemed to be DAM specific configuration required.
Any ideas on how to fix the problem?
Thanks!