Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable MD5 Support for DataLakeStorage 2018-11-09 #5537

Merged
merged 1 commit into from
Apr 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,10 @@
"description": "The content type specified for the resource. If no content type was specified, the default content type is application/octet-stream.",
"type": "string"
},
"Content-MD5": {
"description": "An MD5 hash of the request content. This header is only returned for \"Flush\" operation. This header is returned so that the client can check for message content integrity. This header refers to the content of the request, not actual file content.",
"type": "string"
},
"x-ms-properties": {
"description": "User-defined properties associated with the file or directory, in the format of a comma-separated list of name and value pairs \"n1=v1, n2=v2, ...\", where each value is a base64 encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set.",
"type": "string"
Expand All @@ -969,6 +973,10 @@
"202": {
"description": "The uploaded data was accepted.",
"headers": {
"Content-MD5": {
"description": "An MD5 hash of the request content. This header is only returned for \"Append\" operation. This header is returned so that the client can check for message content integrity. The value of this header is computed by the service; it is not necessarily the same value specified in the request headers.",
"type": "string"
},
"Date": {
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated.",
"type": "string"
Expand Down Expand Up @@ -1037,6 +1045,12 @@
"type": "integer",
"format": "int64"
},
{
"name": "Content-MD5",
"in": "header",
"description": "Optional. An MD5 hash of the request content. This header is valid on \"Append\" and \"Flush\" operations. This hash is used to verify the integrity of the request content during transport. When this header is specified, the storage service compares the hash of the content that has arrived with this header value. If the two hashes do not match, the operation will fail with error code 400 (Bad Request). Note that this MD5 hash is not stored with the file. This header is associated with the request content, and not with the stored content of the file itself.",
"type": "string"
},
{
"name": "x-ms-lease-id",
"in": "header",
Expand Down Expand Up @@ -1080,6 +1094,13 @@
"required": false,
"type": "string"
},
{
"name": "x-ms-content-md5",
"in": "header",
"description": "Optional and only valid for \"Flush & Set Properties\" operations. The service stores this value and includes it in the \"Content-Md5\" response header for \"Read & Get Properties\" operations. If this property is not specified on the request, then the property will be cleared for the file. Subsequent calls to \"Read & Get Properties\" will not return this property unless it is explicitly set on that file again.",
"required": false,
"type": "string"
},
{
"name": "x-ms-properties",
"description": "Optional. User-defined properties to be stored with the file or directory, in the format of a comma-separated list of name and value pairs \"n1=v1, n2=v2, ...\", where each value is a base64 encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set. Valid only for the setProperties operation. If the file or directory exists, any properties not included in the list will be removed. All properties are removed if the header is omitted. To merge new and existing properties, first get all existing properties and the current E-Tag, then make a conditional request with the E-Tag and include values for all properties.",
Expand Down Expand Up @@ -1385,6 +1406,10 @@
"description": "The content type specified for the resource. If no content type was specified, the default content type is application/octet-stream.",
"type": "string"
},
"Content-MD5": {
"description": "The MD5 hash of complete file. If the file has an MD5 hash and this read operation is to read the complete file, this response header is returned so that the client can check for message content integrity.",
"type": "string"
},
"Date": {
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated.",
"type": "string"
Expand Down Expand Up @@ -1467,6 +1492,14 @@
"description": "The content type specified for the resource. If no content type was specified, the default content type is application/octet-stream.",
"type": "string"
},
"Content-MD5": {
"description": "The MD5 hash of read range. If the request is to read a specified range and the \"x-ms-range-get-content-md5\" is set to true, then the request returns an MD5 hash for the range, as long as the range size is less than or equal to 4 MB.",
"type": "string"
},
"x-ms-content-md5": {
"description": "The MD5 hash of complete file stored in storage. If the file has a MD5 hash, and if request contains range header (Range or x-ms-range), this response header is returned with the value of the complete file's MD5 value. This value may or may not be equal to the value returned in Content-MD5 header, with the latter calculated from the requested range.",
"type": "string"
},
"Date": {
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated.",
"type": "string"
Expand Down Expand Up @@ -1533,6 +1566,13 @@
"required": false,
"type": "string"
},
{
"name": "x-ms-range-get-content-md5",
"in": "header",
"description": "Optional. When this header is set to \"true\" and specified together with the Range header, the service returns the MD5 hash for the range, as long as the range is less than or equal to 4MB in size. If this header is specified without the Range header, the service returns status code 400 (Bad Request). If this header is set to true when the range exceeds 4 MB in size, the service returns status code 400 (Bad Request).",
"required": false,
"type": "boolean"
},
{
"name": "If-Match",
"description": "Optional. An ETag value. Specify this header to perform the operation only if the resource's ETag matches the value specified. The ETag must be specified in quotes.",
Expand Down Expand Up @@ -1607,6 +1647,10 @@
"description": "The content type specified for the resource. If no content type was specified, the default content type is application/octet-stream.",
"type": "string"
},
"Content-MD5": {
"description": "The MD5 hash of complete file stored in storage. This header is returned only for \"GetProperties\" operation. If the Content-MD5 header has been set for the file, this response header is returned for GetProperties call so that the client can check for message content integrity.",
"type": "string"
},
"Date": {
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated.",
"type": "string"
Expand Down