Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369968 - Import from zip feature should accept a URL
Summary: Import from zip feature should accept a URL
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 1.0 M2   Edit
Assignee: Susan McCourt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 389089
Blocks:
  Show dependency tree
 
Reported: 2012-01-27 11:49 EST by John J. Barton CLA
Modified: 2012-09-17 16:12 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.