summaryrefslogtreecommitdiff
path: root/api-ref
diff options
context:
space:
mode:
authorMahati Chamarthy <mahati.chamarthy@gmail.com>2016-10-26 20:57:51 +0530
committerMahati Chamarthy <mahati.chamarthy@gmail.com>2016-12-23 01:40:54 +0530
commitfd6edf7bc5de2309edd744d20c29d367dc8785df (patch)
tree9a1479786408d7153a10d439490d7db35afaf509 /api-ref
parent43a175ebd284e825c0f6e5b79a23d8a32f62326e (diff)
downloadswift-fd6edf7bc5de2309edd744d20c29d367dc8785df.tar.gz
Confirm receipt of SLO PUT with etag
With a multipart-manifest PUT request, if client sends the md5 of the segments' etags, a 422 Unprocessable Entity response is returned. This patch fixes that and confirms the etag Change-Id: I4598a2a3f16ca8727bb07bbb6d8efcfcae777796 Closes-Bug: #1213200 Co-Authored-By: Tim Burke <tim@swiftstack.com>
Diffstat (limited to 'api-ref')
-rw-r--r--api-ref/source/parameters.yaml17
1 files changed, 10 insertions, 7 deletions
diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml
index b1ae69be5..a19441a4c 100644
--- a/api-ref/source/parameters.yaml
+++ b/api-ref/source/parameters.yaml
@@ -152,18 +152,21 @@ ETag_obj_copied:
ETag_obj_received:
description: |
The MD5 checksum of the uploaded object content.
- The value is not quoted.
+ The value is not quoted. If it is an SLO, it would
+ be MD5 checksum of the segments' etags.
in: header
required: true
type: string
ETag_obj_req:
description: |
The MD5 checksum value of the request body. For
- example, the MD5 checksum value of the object content. You are
- strongly recommended to compute the MD5 checksum value of object
- content and include it in the request. This enables the Object
- Storage API to check the integrity of the upload. The value is not
- quoted.
+ example, the MD5 checksum value of the object content. For
+ manifest objects, this value is the MD5 checksum of the
+ concatenated string of ETag values for each of the segments in
+ the manifest. You are strongly recommended to compute
+ the MD5 checksum value and include it in the request. This
+ enables the Object Storage API to check the integrity of the
+ upload. The value is not quoted.
in: header
required: false
type: string
@@ -172,7 +175,7 @@ ETag_obj_resp:
For objects smaller than 5 GB, this value is the
MD5 checksum of the object content. The value is not quoted. For
manifest objects, this value is the MD5 checksum of the
- concatenated string of MD5 checksums and ETags for each of the
+ concatenated string of ETag values for each of the
segments in the manifest, and not the MD5 checksum of the content
that was downloaded. Also the value is enclosed in double-quote
characters. You are strongly recommended to compute the MD5