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

PageFlowActionListener needs to check request type before casting to ServletRequest

    XMLWordPrintableJSON

Details

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

    Description

      Currently, the PageFlowActionListener.processAction() unconditionally cast the request object to an ServletRequest. This can cause a ClassCastException. The result of javax.faces.context.ExternalContext.getRequest() is of type Object and can legally be something other than an ServletRequest. It could also be a PortletRequest (such as in the case of a JSR 168 JSF bridge).

      This bug is very similar to BEEHIVE-1142. For now at least, the NetUI faces support should check the type before casting.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: