Uploaded image for project: 'Beehive'
  1. Beehive
  2. BEEHIVE-1142

PageFlowViewHandler.renderView() needs to check request type before casting to HttpServletRequest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.1, 1.0.2
    • 1.0.2
    • None
    • None

    Description

      As with the other methods in PageFlowViewHandler, the method renderView() should check that the request is an instance of HttpServletRequest. At the moment, renderView() is being unconditionally cast to an HttpServletRequest. This can cause a ClassCastException. The result of getRequest() is of Object type and can legally be something other than an HttpServletRequest (such as in the case of a JSR 168 JSF bridge, where it is a RenderRequest).

      Attachments

        Activity

          People

            crogers Howard Carlin Rogers
            crogers Howard Carlin Rogers
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: