[richfaces-issues] [JBoss JIRA] Commented: (RF-10528) Multipart request processing stops RichFaces in portals

Alexander Smirnov (JIRA) jira-events at lists.jboss.org
Tue Feb 15 16:18:13 EST 2011


    [ https://issues.jboss.org/browse/RF-10528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582445#comment-12582445 ] 

Alexander Smirnov commented on RF-10528:
----------------------------------------

I added check for request object type and skip multipart processin for non-servlet objects. Surely, it will not enable fileUpload in portals, but, at least, removes exception in portlet.

> Multipart request processing stops RichFaces in portals
> -------------------------------------------------------
>
>                 Key: RF-10528
>                 URL: https://issues.jboss.org/browse/RF-10528
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-input
>    Affects Versions: 4.0.0.Milestone6
>         Environment: Jboss AS 6.0 / GateIn 3.x / Portletbridge 3.0
>            Reporter: Alexander Smirnov
>            Assignee: Alexander Smirnov
>             Fix For: 4.0.0.CR1
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> FileUpload tight to servlet classes, on any request, there is exception::
> 15:49:09,290 ERROR [org.gatein.pc.container.javax_portlet_faces_GenericFacesPortlet] The portlet threw an exception: java.lang.ClassCastException: org.gatein.pc.portlet.impl.jsr168.api.RenderRequestImpl cannot be cast to javax.servlet.http.HttpServletRequest
> at org.richfaces.context.FileUploadPartialViewContextFactory.getPartialViewContext(FileUploadPartialViewContextFactory.java:94) [:4.0.0-SNAPSHOT]
> at org.richfaces.context.ExtendedPartialViewContextFactoryImpl.getPartialViewContext(ExtendedPartialViewContextFactoryImpl.java:43) [:4.0.0-SNAPSHOT]
> at com.sun.faces.context.FacesContextImpl.getPartialViewContext(FacesContextImpl.java:184) [:2.0.3-]
> at com.sun.faces.context.ExceptionHandlerFactoryImpl.getExceptionHandler(ExceptionHandlerFactoryImpl.java:61) [:2.0.3-]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list