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

Bug 404932

Summary: Node file API should provide ImportLocation on folders
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: NodeAssignee: Project Inbox <orion.server-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: apeller, ken_walker, simon_kaegi
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2013-04-04 14:42:18 EDT
1. Launch Orion Node server
2. Drill into a project, then drill into a subfolder
3. Try to drag & drop a file from your desktop into the navigator
4. Nothing happens.

Something like this may appear in your JS console
> POST http://localhost:8081/navigate/undefined 404 (Not Found)  fileCommands.js:95
> fileCommandUtils.uploadFile fileCommands.js:95
> (anonymous function)

The cause is that the folder does not have an ImportLocation field, so the Orion UI doesn't know where to upload files. We should support this for the NOde server.
Comment 1 Adam Peller CLA 2014-04-01 14:24:29 EDT
Does not seem to work OOTB even on the top-level of the workspace.   Import feature from filesystem is effectively broken?  Is there a workaround?  Can plugins provide ImportLocation on file objects with the existing API?
Comment 2 Simon Kaegi CLA 2014-04-01 19:31:15 EDT
Also see bug 431663 as the upload really should be going through the file api.
Comment 3 John Arthorne CLA 2015-05-05 14:44:23 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html