Mantis - Resin
Viewing Issue Advanced Details
5543 minor always 10-04-13 09:26 11-06-14 15:13
ferg  
ferg  
normal  
closed 4.0.37  
fixed  
none    
none 4.0.42  
0005543: multipart-form with forwards
(rep by Shinomiya Nobuaki)

====================================
Part 1
====================================
1. When I run "HttpServletRequest#getPart" in a Servlet using
"getNamedDispatcher" and "forward", the following type of error occurs.

----------------------------------
javax.servlet.ServletException: multipart-form is disabled; check
@MultipartConfig annotation on 'resin-file'.
----------------------------------

I encountered this problem in the following environment:
* Windows 7 64-bit
* Resin Pro 4.0.37
* The servlet is configured with "multipart-config".


Here are procedures how to reproduce the error.
Please see the attached ZIP file.
This is including a war file ("multipart-
async/multipart/resin_multipartconfig_test.war") and those sorce codes.


1. Deploying the war file named "resin_multipartconfig_test.war" at Resin Pro 4.0.37.
2. Accessing the web page at "http://localhost:8080/resin_multipartconfig_test/upload". [^]
3. Push a button named "choose files", and then push a button named "submit" in case3.


When I used "getRequestDispatcher" instead of "getNamedDispatcher",
this problem did not occured. (You can confirm this fact in Case2.)
When I tried the same way using jetty9 , this problem did not occured at all.
On the other hand, when I also tried the same way using GlassFish4 ,
this problem did occured in both cases using "getRequestDispatcher" and "getNamedDispatcher".


Q1. Is this a bug of Resin?

(See mail 10/3.)

Notes
(0006556)
ferg   
11-06-14 15:13   
servlet/1656