setup/configuration
test I've done
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!
Solved! Go to Solution.
It is security best practices not to indicate a failed authentication, and treat it instead always with the same handling as if the resource is not there at all. As HTTP status codes: Never send a 403, but send a 404 instead.
This is the default implementation for AEM as well. Why do you want to deviate from that practice?
Jörg
It is security best practices not to indicate a failed authentication, and treat it instead always with the same handling as if the resource is not there at all. As HTTP status codes: Never send a 403, but send a 404 instead.
This is the default implementation for AEM as well. Why do you want to deviate from that practice?
Jörg
We want to deviate from the default because we have a need.
In addition to that, we have variations/changes to various built-in components (RTE and image component comes to mind) because of our needs as well.
------------------------
Can you please tell me how to change the default to a 404? Thanks
Views
Replies
Total Likes
You need to adapt the error handler. See /libs/sling/servlet/errorhandler/default.jsp for the default. You need to overwrite this logic (by overlaying) and need to find out if it's a real 404 or rather a 403 (use an admin-session and check if this resource is really there or missing).
Views
Likes
Replies