I wonder if the documentation about  "Creating a dynamic large object"
is correct?
http://docs.openstack.org/developer/swift/api/large_objects.html

The examples all use the same URL after PUT:

Example Upload segment of large object request: HTTP
PUT /{api_version}/{account}/{container}/{object} HTTP/1.1

Example Upload next segment of large object request: HTTP
PUT /{api_version}/{account}/{container}/{object} HTTP/1.1

Example Upload manifest request: HTTP
PUT /{api_version}/{account}/{container}/{object} HTTP/1.1

but I guess the segments need to have different URL:s.

The attached patch is a suggestion of how to change the segment URLs.

Yours sincerely,
Erik Sjölund
From a1aa6166d10c9688a0fce5ddf461fe6e2b05ca75 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Erik=20Sj=C3=B6lund?= <[email protected]>
Date: Tue, 26 Jan 2016 12:57:51 +0100
Subject: [PATCH] Documentation fix

---
 doc/source/api/large_objects.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/source/api/large_objects.rst b/doc/source/api/large_objects.rst
index 144605f..1a7f29d 100644
--- a/doc/source/api/large_objects.rst
+++ b/doc/source/api/large_objects.rst
@@ -172,7 +172,7 @@ manifest is still available to download the first set of 
segments.
 
 .. code::
 
-    PUT /{api_version}/{account}/{container}/{object} HTTP/1.1
+    PUT /{api_version}/{account}/{container}/{object}.01 HTTP/1.1
     Host: storage.clouddrive.com
     X-Auth-Token: eaaafd18-0fed-4b3a-81b4-663c99ec1cbb
     ETag: 8a964ee2a5e88be344f36c22562a6486
@@ -194,7 +194,7 @@ uploading the manifest.
 
 .. code::
 
-    PUT /{api_version}/{account}/{container}/{object} HTTP/1.1
+    PUT /{api_version}/{account}/{container}/{object}.02 HTTP/1.1
     Host: storage.clouddrive.com
     X-Auth-Token: eaaafd18-0fed-4b3a-81b4-663c99ec1cbb
     ETag: 8a964ee2a5e88be344f36c22562a6486
-- 
2.5.0

_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to