You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "Don Brown (JIRA)" <ji...@apache.org> on 2006/04/25 20:58:48 UTC

[jira] Reopened: (STR-584) RequestProcessor doesn't uncast the Request properly (was Fileupload with Bea Weblogic 6.1 Sp2 throws an exception

     [ http://issues.apache.org/struts/browse/STR-584?page=all ]
     
Don Brown reopened STR-584:
---------------------------

    Assign To:     (was: strutsbugs)

> RequestProcessor doesn't uncast the Request properly (was Fileupload with Bea Weblogic 6.1 Sp2 throws an exception
> ------------------------------------------------------------------------------------------------------------------
>
>          Key: STR-584
>          URL: http://issues.apache.org/struts/browse/STR-584
>      Project: Struts Action 1
>         Type: Bug

>   Components: Action
>     Versions: 1.1 Beta 1
>  Environment: Operating System: All
> Platform: All
>     Reporter: Robby Reinicke
>      Fix For: 1.1 Family
>  Attachments: RequestProcessor.diff, RequestProcessor.patch.txt
>
> Hi,
> when you use struts in combination with a Weblogic servlet container and
> you would like to use multipart forms for a file upload, you get a
> 500 error :o( .
> But it's easy to fix !
> In package "org.apache.struts.action" class "RequestProcessor" method
> "doForward(...)" add the follwing code as the first lines:
> if (request instanceof MultipartRequestWrapper) {
>             request = ((MultipartRequestWrapper) request).getRequest();
> }
> Reason: Bea checks the request like this:
> if(servletrequest instanceof HttpServletRequestWrapper) {
> ....
> } else {
>     throw new ServletException("Original request not available");
> }
> Ciao... R. Reinicke

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org