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

Bug 390046

Summary: random files when generating "Hello World" sometimes appear
Product: [ECD] Orion Reporter: Susan McCourt <susan>
Component: ClientAssignee: Susan McCourt <susan>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: john.arthorne, ken_walker
Version: 0.5   
Target Milestone: 1.0 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Susan McCourt CLA 2012-09-20 15:01:38 EDT
Both Ken and I have experienced a situation where we try to generate a sample web site and instead we get unexpected content.

Once I got a "readme.MD" in my folder.
Ken got a .git file

But in trying to reproduce the problem, I just tried to generate the sample HTML5 site 5 times and it worked each time.
Comment 1 Susan McCourt CLA 2012-09-20 15:02:12 EDT
Ken, can you reproduce this anymore?
Comment 2 Susan McCourt CLA 2012-09-20 15:02:40 EDT
I will work to try to reproduce this, Ken can you do the same?
Comment 3 Ken Walker CLA 2012-09-20 15:16:41 EDT
I just tried 3 times.  While I didn't get any weird files, I also didn't get ANY files.
Comment 4 Susan McCourt CLA 2012-09-20 15:31:30 EDT
(In reply to comment #3)
> I just tried 3 times.  While I didn't get any weird files, I also didn't get
> ANY files.

is this running orion.eclipse.org or a self hosted site?  I'm not seeing this.  Anything in the console?
Comment 5 Susan McCourt CLA 2012-09-20 15:33:17 EDT
When you get no files, are you getting the
[Object object] info message or are you getting the HTML wad we saw earlier?  I'm thinking they may be related.
Comment 6 Ken Walker CLA 2012-09-20 15:49:56 EDT
Failed to load resource: the server responded with a status of 500 (Internal Server Error)  https://orion.eclipse.org/xfer/import/E/sample?source=http://https://orion.eclipse.org/plugins/contentTemplates/helloWorld.zip

Failed to load resource: the server responded with a status of 404 (Not Found)
https://orion.eclipse.org/plugins/undefined
Comment 7 Susan McCourt CLA 2012-09-21 11:01:20 EDT
(In reply to comment #6)
> Failed to load resource: the server responded with a status of 500 (Internal
> Server Error) 
> https://orion.eclipse.org/xfer/import/E/sample?source=http://https://orion.
> eclipse.org/plugins/contentTemplates/helloWorld.zip
> 
> Failed to load resource: the server responded with a status of 404 (Not
> Found)
> https://orion.eclipse.org/plugins/undefined

ok, that's my bad.  I was checking to ensure a protocol was specified, but not using the normal URL parsing.  So it didn't catch https vs http
Comment 8 Susan McCourt CLA 2012-09-21 11:16:48 EDT
Discussed with Ken, I'll fix the protocol parsing for M2 today.  That should fix the "I'm not getting any files at all" problem but perhaps not the random file problem.
Comment 9 Susan McCourt CLA 2012-09-21 15:03:41 EDT
Removed the protocol stuff.  User must supply it (in import URL command) or the plugin supplies it in the create new content extension.
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=935d7dd6eb9384bdbc8a1766b904c7a3fb41bd72
Comment 10 Susan McCourt CLA 2012-09-21 15:09:32 EDT
Ken and I have both tried the fix, and it seems to solve both problems.  The proper files unzip and no extra files appear.