Hi

I have the following problem

Quick description:
When I try to handle FileUploadLimitExceededException the user is not
redirected to the error page until the file is not fully uploaded.

Detailed description:
I've configured exception handler that handles
FileUploadLimitExceededException (using DelegatingExceptionHandler) with
method:

public Resolution handle(FileUploadLimitExceededException e,
HttpServletRequest request, HttpServletResponse response) 
(example can be seen 
http://www.nabble.com/How-to-handle-exception-on-File-Upload-in-stripes.-td18179698.html
here )

This method should forward user in case of exceeding the request size limit
to a friendly error page (i.e. the method is returning a ForwardResolution
or RedirectResolution - the problem occurs with both).
When the user uploads the file, the method handle(...) is called quickly
(can be seen in logs) but the client browser is not redirected until the
file is finished uploading.
Stripes version: 1.5

Do you have any idea why stripes is doing this and how can it be resolved?
Or should it be filed as bug in stripes jira?
Thank you in advance for any help

Michal

-- 
View this message in context: 
http://www.nabble.com/Large-file-upload-does-not-stop-after-FileUploadLimitExceededException-tp23083612p23083612.html
Sent from the stripes-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to