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

Bug 369968

Summary: Import from zip feature should accept a URL
Product: [ECD] Orion Reporter: John J. Barton <johnjbarton>
Component: ClientAssignee: Susan McCourt <susan>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: john.arthorne
Version: 0.4   
Target Milestone: 1.0 M2   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 389089    
Bug Blocks:    

Description John J. Barton CLA 2012-01-27 11:49:36 EST
so then I can copy a .zip file URL and paste, then OK I am in Orion, cool.
Comment 1 Susan McCourt CLA 2012-09-07 15:23:52 EDT
I need this functionality to finish bug 378749.  At that point the command will be implemented, and this bug can expose it in the UI.  It's probable we would have a separate menu item for this vs. adding URL capability to the import dialog, but I'll talk to Anton about it when I get here.
Comment 2 John Arthorne CLA 2012-09-07 15:25:56 EDT
If there's something you need on the server side just assign me a bug marked 1.0 M2 and I'll get to it, likely early next week.
Comment 3 Susan McCourt CLA 2012-09-17 16:12:18 EDT
fixed in http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=9a82eb621d3edf19e5b2ebc26c4a37c6633b9684

The UI is a new menu item, "Import from HTTP..."
You can specify the URL as well as a checkbox for whether to unzip the file into the target folder.  The idea is that you might you want to import some random file as is (including storing a zip file on the server), or you might want to unzip an archive file (of any name).  So I don't try to infer the value of the "unzip" checkbox from the file name, so that files with the correct format can unpack regardless of file name.

It is working for zip files, but not yet for non-zip files.  For zip files, you'll see a bogus info message after the unzip (reported in bug 389758.)  

If you choose not to unzip the file, it is currently broken due to bug 389089 comment 6.

Since the client side is largely done, I'm marking this fixed, because the open issues are tracked in the other bugs.