Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-13771

AJAX responses do not support exceptions messages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.5-RC1
    • 3.1.3, 3.1.4-RC1
    • Other
    • None

      The updated http_exception and runtime_exception classes added in 3.1.3 do not fully support AJAX responses.

      When an exception is thrown in during an AJAX process, the response displays to the user an error message based on the status code.

      The custom message string, if supplied in the thrown http/runtime_exception should be displayed to the user in the AJAX error window.

      This allows extensions, for example, using AJAX to provide meaningful error messages to users besides simply "Forbidden" or "Internal server error" just as we already can do for non-AJAX based exceptions.

            Marc Marc
            VSE Matt Friedman [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: