Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 362315

Summary: TypeError importing from zip
Product: [ECD] Orion Reporter: John Arthorne <john.arthorne>
Component: ClientAssignee: Anton McConville <antonm>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: simon_kaegi, Szymon.Brandys, tomasz.zarna
Version: 0.3   
Target Milestone: 0.5 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Problematic zip file none

Description John Arthorne CLA 2011-10-28 10:14:32 EDT
Running on localhost using latest master as of 20111028

I was importing some zips into my workspace today. The first one succeeded, but the second zip consistently fails with:

form data: Object 8080/org.dojotoolkit/dojox/form/uploader/plugins/HTML5.js:51
event.js:118Uncaught TypeError: Object #<Object> has no method 'preventDefault'
Comment 1 John Arthorne CLA 2011-10-28 10:34:10 EDT
Now I don't seem to be able to import the first zip, which I successfully imported earlier today... very strange.
Comment 2 John Arthorne CLA 2011-10-28 10:36:35 EDT
Created attachment 206136 [details]
Problematic zip file
Comment 3 Susan McCourt CLA 2011-10-28 14:15:50 EDT
i've seen this too before.  i'll take this bug because i have some other import related ones.
Comment 4 John Arthorne CLA 2011-10-31 10:36:43 EDT
I realized afterwards that the second zip was succeeding, but it was overwriting a file already in the folder, so I didn't see any visible effect. So it seems there is just spew in the console but the import actually works...
Comment 5 Anton McConville CLA 2012-02-16 22:32:23 EST
I had thought that I was assigned this because I asked some questions about uploading files - why they had to be zips, and was given the task of looking into it. I haven't started doing that yet. It might take a while for me to understand this! 

From the description of this problem though, it seems that it might all be web client related - just not representing itself to the user in the correct state. I can look at it some more tomorrow. Susan, can you advise me on this? Did I get assigned this to look at in relation to the other analysis/improvement work on uploading files?
Comment 6 Anton McConville CLA 2012-03-28 10:33:03 EDT
Fixed this problem in my latest work, by adding the preventDefault method for the call.