Details
-
Story
-
Resolution: Obsolete
-
High
-
Known Issues 5.x Stack, 5.0, 2013.4, 5.1
-
LAMP (php 5.3, mysql 5.1)
Description
I created a new section and affected it to a node.
In my website, when I'm not connected, if I try to see this page, Symfony throws an exception :
"User does not have access to 'read' 'content'
500 Internal Server Error - UnauthorizedException"
Surprising. I think this exception should be caught by default to display a login form. This works if I set legacy_mode to true for my siteaccess. I would prefer not to do this.
How can I catch this exception to display my login form or register form ? What is the best practice in eZ 5 ?
I tried my problem in "prod mode". The exception is still displayed, but seems to be caught by twig :
"TwigBundle:Exception:error500.html.twig"
Also described here : http://share.ez.no/forums/ez-publish-5-platform/user-does-not-have-access-to-read-content/
Attachments
Issue Links
- is duplicated by
-
EZP-20043 Improve feedback to user on exceptions in prod env
- Closed
- relates to
-
EZP-19786 Create error/exception handler
- Closed
-
EZP-20844 Anonymous group needs to have access to section/view policy
- Closed
-
EZP-21955 Access to restricted content results in error 500
- Closed
-
EZP-21297 As a 5.x user I expect missing images to be treated as error, not full 500 exception
- Closed