Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

vivz76
vivz76
Offline

Badges

Badges
5

Accepted Solutions

Accepted Solutions
1

Likes Received

Likes Received
0

Posts

Posts
4

Discussions

Discussions
0

Questions

Questions
4

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by vivz76
Customize the badges you want to showcase on your profile
Re: custom 403 error page not loaded by sling in CQ 5.6.1, 404 page loaded instead - Adobe Experience Manager 06-01-2016
Hi guys, I managed to nail this one. It was a little bit of a hack but it did the trick. I found that in the instance that I am running aem 5.6, even if there is a 403 error on the page, the request is coming to the error handler as a 404, i.e to 404.jsp. So, I wrote some code to check if the logged in user has access to that particular resource he/she is trying to access. Then I login with as admin to the repo and try to access the same resource again. If the access is granted for admin and not...

Views

788

Likes

0

Replies

0
Re: custom 403 error page not loaded by sling in CQ 5.6.1, 404 page loaded instead - Adobe Experience Manager 11-12-2015
Hi Sham, I am creating a page and then assigning it to a specific CUG in the author instance, then published this page and accessed with a user who is not part of this CUG, but is part of other groups. However while trying to access, it is showing 404 for the user who is not part of the CUG for this page, which should have been a 403 instead. This user is able to access other pages without issue(for which he has access to). Please let me know if I'm missing something. Thanks,Vivek

Views

788

Likes

0

Replies

0
Re: custom 403 error page not loaded by sling in CQ 5.6.1, 404 page loaded instead - Adobe Experience Manager 02-12-2015
Hi Loki, Sure, thanks a lot for the quick reply! The code for Option 1 is already in place, but it seems to not work because the status code received in this jsp itself is a 404 instead of an actual 403. Hence it is showing the 404 page. This code is in the apps folder.Here's the piece of code that handles this currently: String message = (String) request.getAttribute("javax.servlet.error.message"); Integer scObject = (Integer) request.getAttribute("javax.servlet.error.status_code"); boolean isA...

Views

789

Likes

0

Replies

0
custom 403 error page not loaded by sling in CQ 5.6.1, 404 page loaded instead - Adobe Experience Manager 02-12-2015
Hi, I am trying to trigger a custom 403 error page in CQ based on the respective error code. First of all, as mentioned in the adobe docs, I couldn't find the 403.jsp page in /libs/sling/servlet/errorhandler/ . It only had the 404.jsp. However I had overridden this page by creating a 404 and 403 jsp pages in /apps/sling/servlet/errorhandler/ and created a default.jsp which handles all the error codes and forward the request to the respective error pages. But even after doing all this, somehow th...

Views

2.1K

Likes

0

Replies

8