beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlin Rogers (JIRA)" <...@beehive.apache.org>
Subject [jira] Resolved: (BEEHIVE-1142) PageFlowViewHandler.renderView() needs to check request type before casting to HttpServletRequest
Date Tue, 29 Aug 2006 23:08:22 GMT
     [ http://issues.apache.org/jira/browse/BEEHIVE-1142?page=all ]

Carlin Rogers resolved BEEHIVE-1142.
------------------------------------

    Resolution: Fixed

fixed with SVN revision 438282

http://svn.apache.org/viewvc?rev=438282&view=rev

> PageFlowViewHandler.renderView() needs to check request type before casting to HttpServletRequest
> -------------------------------------------------------------------------------------------------
>
>                 Key: BEEHIVE-1142
>                 URL: http://issues.apache.org/jira/browse/BEEHIVE-1142
>             Project: Beehive
>          Issue Type: Bug
>    Affects Versions: 1.0.1, v.next
>            Reporter: Carlin Rogers
>         Assigned To: Carlin Rogers
>             Fix For: v.next
>
>
> 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).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message