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

Bug 507199

Summary: Creating project with conflicting name should report its error in red
Product: [ECD] Orion Reporter: Remy Suen <remy.suen>
Component: NodeAssignee: Remy Suen <remy.suen>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: Michael_Rennie
Version: 13.0   
Target Milestone: 13.0   
Hardware: PC   
OS: Windows 10   
See Also: https://git.eclipse.org/r/84652
https://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=660431a285985828ff24fabec2eb38b637fc2f88
Whiteboard:

Description Remy Suen CLA 2016-11-08 03:14:10 EST
Electron 1.2.7

1. Startup a new Electron (on an existing workspace) so you have nothing selected in the file navigator.
2. File > New > File
3. Enter the name of a folder that already exists in the root.
4. You will get a red status error: "Failed to create file: xxx"
5. File > New > Folder
6. Enter the same name you used in 3.
7. You will get a green status message: "Failed to create folder: xxx"

I feel like the folder error message should also be green. Both errors are red to me if I point my browser at the running Node instance so this problem definitely seems to be specific to Electron.

-----------------

file 412 error

POST http://localhost:8081/file 412 (A file or folder with the same name already exists at this location.)
_xhr @ xhr.js:175
_xhr @ fileImpl.js:95
createFile @ fileImpl.js:395
_callMethod @ plugin.js:273
_handleMessage @ plugin.js:326
xhr.js:175

-----------------

folder 400 error

POST http://localhost:8081/workspace/orionode 400 (Bad Request)
_xhr @ xhr.js:175
_xhr @ fileImpl.js:95
createProject @ fileImpl.js:341
_callMethod @ plugin.js:273
_handleMessage @ plugin.js:326
Comment 1 Remy Suen CLA 2016-11-08 05:11:48 EST
(In reply to Remy Suen from comment #0)
> Both errors are
> red to me if I point my browser at the running Node instance so this problem
> definitely seems to be specific to Electron.

I take that back. You can't create a file in the root folder in the browser client but I do get the folder creation error in the browser.
Comment 2 Eclipse Genie CLA 2016-11-08 06:05:15 EST
New Gerrit change created: https://git.eclipse.org/r/84652
Comment 4 Michael Rennie CLA 2016-11-17 11:27:56 EST
Thanks Remy.

I also opened bug 507690 for the weird error messages you get on orion.eclipse.org / orionhub.org