Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362241 - incorrect response (wrong name) when creating a new file
Summary: incorrect response (wrong name) when creating a new file
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Server (show other bugs)
Version: 0.3   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.4 M1   Edit
Assignee: Tomasz Zarna CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 361444
  Show dependency tree
 
Reported: 2011-10-27 16:33 EDT by Susan McCourt CLA
Modified: 2011-11-08 05:18 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.