Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3286

ExceptionHandler implementation should set response status codes before throw exception or show error page

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.8, 2.1.2
    • Component/s: JSR-314
    • Labels:
      None

      Description

      When an error is handled by myfaces exception handler implementation, it is a good practice to set response status codes. This is not necessary for ajax responses but for normal requests. The visible effect is with firebug you see the red link.

      Additionally, there is a missing line, to prevent set myfaces exception handler on production stages, unless it is declared on web.xml

        Attachments

          Activity

            People

            • Assignee:
              lu4242 Leonardo Uribe
              Reporter:
              lu4242 Leonardo Uribe
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: