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

Infinitive loop with embed on 404 page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0, 3.1.0, 2.5.13
    • Fix Version/s: None
    • Labels:
      None

      Description

      STR:
      1) Render richtext field in pagelayout (for example, in footer).
      2) Put embed image in the richtext field.
      3) Open valid URL to verify anonymous has access to the image.
      3) Open some 404 URL

      AR:
      500 error returned after max nested level reached

      ER:
      404 Page properly displayed

      Developer notes:
      It's because there is no firewall for 404 page, and there is no token in token storage service.
      So, it threw "AuthenticationCredentialsNotFoundException".
      Subrequest tries to render an error page, which extends pagelayout, which tries to render the same richtext field, and it leads to an infinitive loop.

      PR: coming soon

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            diaborn Ivan Ternovtsiy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: