Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Medium 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.
      

        Issue Links

          Activity

          Show
          Yannick Roger (Inactive) added a comment - - edited Added in master: https://github.com/ezsystems/ezpublish-legacy/commit/78fd0a796dd0b7aad282515801dede73db3ff97b
          Hide
          Bertrand Dunogier added a comment -

          Sending to QA, unless something else needs to be done ?

          Show
          Bertrand Dunogier added a comment - Sending to QA, unless something else needs to be done ?
          Hide
          Pedro Resende (Inactive) added a comment -

          Tested and approved by Q.A.

          Show
          Pedro Resende (Inactive) added a comment - Tested and approved by Q.A.
          Hide
          Yannick Roger (Inactive) added a comment -

          Community doc in a blog post : http://share.ez.no/blogs/thiago-campos-viana/custom-fatal-error-message-for-ez-publish-legacy
          Thanks to Thiago.

          It could be used as an example for official doc.

          Show
          Yannick Roger (Inactive) added a comment - Community doc in a blog post : http://share.ez.no/blogs/thiago-campos-viana/custom-fatal-error-message-for-ez-publish-legacy Thanks to Thiago. It could be used as an example for official doc.

            People

            • Assignee:
              Unassigned
              Reporter:
              Nuno Oliveira (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: