jijo-paulose / gwtupload

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

JavaScript error when entering invalid path in IE8 #134

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using an unmodified Uploader, as follows:

Uploader uploader = new Uploader(true);
RootPanel.get("default").add(uploader);

2. With IE8, click the text field and type an invalid file path (ex: 
"invalid"). Submit the file.

What is the expected output? What do you see instead?
Expected: error message informing the user that an invalid file path has been 
typed.
Actual: default error message; "Unable to auto submit the form, it seems your 
browser has security issues with this feature.\n Developer Info: If you are 
using jsupload and you do not need cross-domain, try a version compiled with 
the standard linker?"

What version of the product are you using? On what operating system?
gwtupload-0.6.4 with GWT 2.4.0 on Windows 7

Please provide any additional information below.
The error can be handled by catching Exceptions thrown by FormPanel#submit(). 
I've attached an example diff of that change.

Original issue reported on code.google.com by theandre...@gmail.com on 24 Jan 2012 at 7:37

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by manuel.carrasco.m on 12 Mar 2012 at 5:53

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r996.

Original comment by manuel.carrasco.m on 1 Jun 2012 at 10:11

GoogleCodeExporter commented 9 years ago
Thanks for contributing

- Manolo

Original comment by manuel.carrasco.m on 1 Jun 2012 at 10:12

GoogleCodeExporter commented 9 years ago
I checked out the latest (r1000) version with subversion and used maven to 
generate the gwtupload jar file. Looking at the r996 changes, I am seeing that 
changes were made gwtupload jar classes  only (since I am not using the 
jsupload). So I figured the jar file will be sufficent. I am still getting the 
same error when using on the server mode (devmode is ok). I get the error with 
Firefox. With Chrome, I don't get an error but it hangs. I am not crossing 
domains, and looking at the fix at r996, I am not sure how the issue is fixed: 
it seems the download gets cancelled if there is an exception on form submit, 
but that doesn't let me upload it. I am attaching the jar file I made and also 
the class in which I am using the MultiUploader. I also made sure that I don't 
have two gwtupload jars floating around in my classpath but still that doesn't 
fix the issue. Any ideas?

Original comment by sevanmat...@gmail.com on 9 Jul 2012 at 10:22

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by manuel.carrasco.m on 30 Nov 2012 at 9:16