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

Bug 341527

Summary: Hide ugly "fakepath" text on import
Product: [ECD] Orion Reporter: Wim Jongman <wim.jongman>
Component: ClientAssignee: Project Inbox <orion.client-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: ahunter.eclipse, simon_kaegi
Version: 0.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Wim Jongman CLA 2011-03-31 13:59:56 EDT
i have a project exported that i now try to import. On the import prompt, i navigate to the zip file in my downloads directory. The input box returns with the path c:\fakepath\EX.zip This is not where I stored my zip. 

I create a c:\fakepath and copy the zip in there and select import again. I see a upload percentage counter but after the import nothing is placed in the root. 

Then I create a subfolder and press import on that. After the same process the files are loaded in that subdirectory.
Comment 1 John Arthorne CLA 2011-03-31 15:54:24 EDT
If you just ignore the "fakepath" and click finish it should work. At least it works for me on Win 7 with Chrome and IE 9. The "fakepath" is a browser security "feature"...

http://acidmartin.wordpress.com/2009/06/09/the-mystery-of-cfakepath-unveiled/

This is even mentioned in the HTML5 spec:

http://www.w3.org/TR/html5/Overview.html#dom-input-value-filename

Ideally we could hide this ugliness in some way though. We don't get to know the path, but we could insert the simple file name or some other text to let the user know we processed their selection.
Comment 2 Wim Jongman CLA 2011-03-31 18:24:48 EDT
hi, yes i figured this was some cloaking device. However, I did not manage to insert my zip into the root project which is my main issue. Creating a subfolder in the project, restoring the zip into that and then move back to the root made me restore my website.  

I was working on github.
Comment 3 Anthony Hunter CLA 2013-06-07 14:32:46 EDT
This problem no longer occurs on IE 10 which is the minimal version of IE supported by Orion 3.0.