Make sure to reply back ETag with quotes for s3 compliance

master
Harshavardhana 10 years ago
parent 0c5aa7a3d8
commit 6d44274db6
  1. 2
      NOTICE
  2. 4
      pkg/api/api_response.go
  3. 2
      pkg/erasure/README.md

@ -1,7 +1,7 @@
Minimalist Object Storage, (C) 2014,2015 Minio, Inc. Minimalist Object Storage, (C) 2014,2015 Minio, Inc.
This product includes software developed at Minio, Inc. This product includes software developed at Minio, Inc.
(http://minio.io/). (https://minio.io/).
The Minio project contains unmodified/modified subcomponents too with The Minio project contains unmodified/modified subcomponents too with
separate copyright notices and license terms. Your use of the source separate copyright notices and license terms. Your use of the source

@ -86,7 +86,7 @@ func generateListObjectsResponse(bucket string, objects []drivers.ObjectMetadata
} }
content.Key = object.Key content.Key = object.Key
content.LastModified = object.Created.Format(iso8601Format) content.LastModified = object.Created.Format(iso8601Format)
content.ETag = object.Md5 content.ETag = "\"" + object.Md5 + "\""
content.Size = object.Size content.Size = object.Size
content.StorageClass = "STANDARD" content.StorageClass = "STANDARD"
content.Owner = owner content.Owner = owner
@ -152,7 +152,7 @@ func generateListPartsResult(objectMetadata drivers.ObjectResourcesMetadata) Lis
for _, part := range objectMetadata.Part { for _, part := range objectMetadata.Part {
newPart := &Part{} newPart := &Part{}
newPart.PartNumber = part.PartNumber newPart.PartNumber = part.PartNumber
newPart.ETag = part.ETag newPart.ETag = "\"" + part.ETag + "\""
newPart.Size = part.Size newPart.Size = part.Size
newPart.LastModified = part.LastModified.Format(iso8601Format) newPart.LastModified = part.LastModified.Format(iso8601Format)
listPartsResponse.Part = append(listPartsResponse.Part, newPart) listPartsResponse.Part = append(listPartsResponse.Part, newPart)

@ -6,7 +6,7 @@ Erasure is an open source Golang library written on top of ISAL (Intel Intellige
* [Get Source](./CONTRIBUTING.md) * [Get Source](./CONTRIBUTING.md)
* [Build Dependencies](./BUILDDEPS.md) * [Build Dependencies](./BUILDDEPS.md)
* [Development Workflow](./CONTRIBUTING.md#developer-guidelines) * [Development Workflow](./CONTRIBUTING.md#developer-guidelines)
* [Developer discussions and bugs](https://github.com/minio/erasure/issues) * [Developer discussions and bugs](https://github.com/minio/minio/issues)
### Supported platforms ### Supported platforms

Loading…
Cancel
Save