jijo-paulose / gwtupload

Automatically exported from code.google.com/p/gwtupload
Other
0 stars 0 forks source link

Uploader does not notify upon incorrect response #158

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Put the upload servlet behind a filter that will throw an IOException.
2. Try to upload a file.

What is the expected output? What do you see instead?
I expect to get some form of notification, through one of the added handlers. 
Instead, all I see is a logged "incorrect response" message and an uploader 
that is hanging.

What version of the product are you using? On what operating system?
Version 0.6.4, Windows 7 with JBoss AS 7 and GWT 2.4.0.

Please provide any additional information below.
We have a security-constraint before the entire web application. When the user 
is logged in this works just fine. When the session is invalidated an exception 
is thrown from the filter. I've stepped through the Uploader source code with 
Eclipse's GWT debugger and noticed that method "parseAjaxResponse" fires off 
all types of events except when the response isn't what was expected. I'd at 
least expect an error handler to be notified.

Original issue reported on code.google.com by robti...@gmail.com on 19 Jul 2012 at 1:16

GoogleCodeExporter commented 9 years ago
Do you have a fix for this which you could attach here?

Original comment by manuel.carrasco.m on 3 Dec 2012 at 12:27

GoogleCodeExporter commented 9 years ago
IMO, this is something the app has to do. It should be aware whether the user 
is correctly logged in and dont  give the option to the user to upload files or 
whatever.

Original comment by manuel.carrasco.m on 17 May 2013 at 1:55

GoogleCodeExporter commented 9 years ago

Original comment by manuel.carrasco.m on 30 Oct 2013 at 9:53