struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mousami bhattacharya (JIRA)" <>
Subject [jira] Created: (STR-3156) org.apache.struts.tiles.UrlController should unwrap the http request from MultipartRequestWrapper
Date Tue, 24 Jun 2008 18:46:05 GMT
org.apache.struts.tiles.UrlController should unwrap  the http request from MultipartRequestWrapper

                 Key: STR-3156
             Project: Struts 1
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.1.1
         Environment: weblogic application server.
            Reporter: mousami bhattacharya

We are using struts 1.1 with tiles  for our web application. During file upload, as the http
request is wrapped as a MultipartRequestWrapper object , the  org.apache.struts.tiles.UrlController
throws ClassCastException at line requestDispatcher.include(...)   [  in  perform() method

On changing the UrlController class to include the following lines , the exception disappers.
      // Unwrap the multipart request, if there is one.
       if (request instanceof MultipartRequestWrapper) {
	               request = ((MultipartRequestWrapper) request).getRequest();

this fix was done in RequestProcessor , but didnt make it to the UrlController class.

Exception stack trace :

java.lang.ClassCastException: org.apache.struts.upload.MultipartRequestWrapper
at weblogic.servlet.internal.ServletRequestImpl.getOriginalRequest(
at weblogic.servlet.internal.RequestDispatcherImpl.include(
at org.apache.struts.tiles.UrlController.perform(
at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(
at org.apache.struts.action.RequestProcessor.process(
at org.apache.struts.action.ActionServlet.process(
at org.apache.struts.action.ActionServlet.doPost(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service( 

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message