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

Bug 398685

Summary: default file client createFolder() result often has wrong Name value
Product: [ECD] Orion Reporter: Grant Gayed <grant_gayed>
Component: ClientAssignee: Elijah El-Haddad <elijahe>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ahunter.eclipse, elijahe, john.arthorne, simon_kaegi
Version: 2.0Flags: ahunter.eclipse: review+
Target Milestone: 5.0 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 426407    

Description Grant Gayed CLA 2013-01-21 15:49:21 EST
- happens often, but not 100%

fileClient.createFolder("/file/H/console.plugin.echo/", "outFolder").then(
    function(node) {
        // node's Location value: "/file/H/console.plugin.echo/outFolder" (ok)
        // node's Name value: "console.plugin.echo" (no, should be "outFolder")
    }
);
Comment 1 Elijah El-Haddad CLA 2014-01-21 15:57:08 EST
I've recently come across the same issue. It seems to be a server side problem since the Name is incorrect in the JSON object returned by the server.
Comment 2 Simon Kaegi CLA 2014-01-22 01:22:38 EST
I spent a little time debugging this -- looks like an error in ProjectParentDecorator line 58 -- but not sure what the correct intent is.
Comment 3 Elijah El-Haddad CLA 2014-01-22 16:20:51 EST
Fix pushed to github: https://github.com/elijahe/orion.server/commit/0c7c5af26b28e34e7bf5feb9319607873a5ed8d9