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

Unable to embed content from 404-page

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 2015.12.1
    • None

    Description

      When using [this method](http://symfony.com/doc/current/cookbook/controller/error_pages.html) to customize error pages, I am unable to embed content into a 404-page, for instance by means of:

      {{ render( controller( "ez_content:viewContent",

      {"contentId": 255, "viewType": "line"}

      ) ) }}

      In the logs I get `AuthenticationCredentialsNotFoundException` which I belive is due to the fact that the router runs before the firewall. I understand that this is Symfony default behaviour, and that eZ probably requires authentication in order to display any content at all, but it causes a problem from an implementation perspective with regards to requirements for a rich (and editiable) 404-page.

      Is there any way to work around this? I've thought about redirecting to a set page which exists, but that would then not produce the proper HTTP status code.

      Attachments

        Activity

          People

            Unassigned Unassigned
            495f4094-ac4a-42b8-b5f6-d64d5508894c@accounts.ibexa.co Eirik Alfstad Johansen
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: