Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] Another question about Server API / File API

Hi John,

 

Thank you. I hope now I have all valid combinations.

 

Some more questions from my side:

 

1.       In the Orion wiki the statement is that one cannot create file using PUT. In the implementation loaded from here (http://download.eclipse.org/orion/) one can do this. Where is a bug?

 

2.       I sent already a bug report, but I still want to ask you:

 

Below is the example response from the wiki page  (http://wiki.eclipse.org/Orion/Server_API/File_API#Getting_file_metadata_and_contents).
In the Orion implementation (http://download.eclipse.org/orion/) the “Content-Type: text/plain” is missing.

Instead there is some number of ‘\r’ and ‘\n’ around the contents.

 

What is the correct response?

 

Example Response

HTTP/1.1 HTTP/1.1 200 OK
Content-Type: multipart/related; boundary="BOUNDARY"
ETag: "35fd43td3"
--BOUNDARY
Content-Type: application/json
 
{
"Name" : "myfile.txt",
"Location" : "http://example.com/file/MyProj/myfile.txt",
"ETag" : "35fd43td3",
"Directory" : "false",
"LocalTimeStamp" : "01234345009837",
"Charset" : "UTF-8",
"ContentType" : "text/plain",
"Attributes" : {
"ReadOnly" : "false",
"Executable" : "true"
}
}
 
--BOUNDARY
Content-Type: text/plain
 
This is the contents 
 
--BOUNDARY

 


Best Regards,

Vitaly

 

 

 

 

From: orion-dev-bounces@xxxxxxxxxxx [mailto:orion-dev-bounces@xxxxxxxxxxx] On Behalf Of John Arthorne
Sent: Donnerstag, 22. August 2013 22:26
To: Orion developer discussions
Cc: orion-dev-bounces@xxxxxxxxxxx
Subject: Re: [orion-dev] Another question about Server API / File API

 

1. Yes he missed one valid combination. The only limitation among current values is that "copy" and "move" are mutually exclusive. All other combinations are allowed.

2. No problem!

John




Back to the top