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

Bug 362241

Summary: incorrect response (wrong name) when creating a new file
Product: [ECD] Orion Reporter: Susan McCourt <susan>
Component: ServerAssignee: Tomasz Zarna <tomasz.zarna>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: john.arthorne
Version: 0.3   
Target Milestone: 0.4 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 361444    

Description Susan McCourt CLA 2011-10-27 16:33:45 EDT
- create top level folder "Foo"
- drill into "Foo" (which is empty)
- create file "a.txt"

the server response for the post to create a.txt is:

{
  "Attributes": {
    "Executable": false,
    "ReadOnly": false,
    "SymLink": false
  },
  "Directory": false,
  "ExportLocation": "/xfer/export/Ca/a.txt.zip",
  "ImportLocation": "/xfer/import/Ca/a.txt",
  "Length": 0,
  "LocalTimeStamp": 1319747560000,
  "Location": "/file/Ca/a.txt",
  "Name": "Foo",
  "Parents": [],
  "SearchLocation": "/filesearch?q="
}

Note that the location is correct, but the name is using the parent name "Foo"
Comment 1 Tomasz Zarna CLA 2011-10-28 05:28:20 EDT
John I can have a look at it, if you don't mind.
Comment 2 John Arthorne CLA 2011-10-31 15:43:38 EDT
Go for it.
Comment 3 Tomasz Zarna CLA 2011-11-08 05:18:35 EST
Fixed with d47d85800ea7abd74f2e6574dd1202cb6fd51722.