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

Unable to embed content from 404-page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: 2015.12.1
    • Fix Version/s: None
    • Component/s: 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

            Assignee:
            Unassigned
            Reporter:
            EirikJ Eirik Alfstad Johansen
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: