[ http://issues.apache.org/struts/browse/STR-584?page=all ]
Don Brown closed STR-584:
-------------------------
Resolution: Fixed
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]