org.apache.struts.tiles.UrlController should unwrap the http request from MultipartRequestWrapper --------------------------------------------------------------------------------------------------
Key: STR-3156 URL: https://issues.apache.org/struts/browse/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(ServletRequestImpl.java:1313) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:328) at org.apache.struts.tiles.UrlController.perform(UrlController.java:111) at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:243) at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:309) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.