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

Override legacy fatal error message

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2015.01, 5.4.1.1
    • Fix Version/s: Customer request, 5.4.2, 2015.03
    • Component/s: Misc
    • Labels:
      None
    • Environment:

      eZ Publish 5.2, legacy

      Description

      Currently, the only way to override the HTTP 500 error message "Fatal error: The web server did not finish its request" is to customize kernel/private/classes/ezpkernelweb.php. Please create a mechanism (through an additional setting, for example) to allow for that in a clean, user-friendly way.

      Note: using Apache custom error responses via ErrorDocument 500 would seem a good alternative, but it doesn't work:

      https://issues.apache.org/bugzilla/show_bug.cgi?id=34094
      http://stackoverflow.com/questions/2252624/apache-errordocument-not-working-for-php-500-error
      http://stackoverflow.com/questions/5765319/apaches-errordocument-directive-does-not-redirect/5839076#5839076

      The actual ErrorDocument documentation (http://httpd.apache.org/docs/current/mod/core.html#errordocument) states:

      Although most error messages can be overridden, there are certain circumstances where the internal messages are used regardless of the setting of ErrorDocument. In particular, if a malformed request is detected, normal request processing will be immediately halted and the internal error message returned. This is necessary to guard against security problems caused by bad requests.
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              nuno.oliveira-obsolete@ez.no Nuno Oliveira (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: