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

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.8, 2.1.2
    • JSR-314
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: