Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-20782

As a 5.x User I expect better info when I lack access to content



      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 :


      Also described here : http://share.ez.no/forums/ez-publish-5-platform/user-does-not-have-access-to-read-content/

        Issue Links


          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Backlog Backlog
          9d 22h 47m 1 André Rømcke 06/May/13 5:10 PM
          Backlog Backlog Closed Closed
          1744d 7h 42m 1 Sylvain Guittard 13/Feb/18 11:53 PM


            • Assignee:
              Nicolas Lescure
            • Votes:
              2 Vote for this issue
              5 Start watching this issue


              • Created: