Skip to content

Commit

Permalink
Update minio-go dependencies to latest 5.0.0 release (minio#5640)
Browse files Browse the repository at this point in the history
With following changes

- Add SSE and refactor encryption API (minio#942) <Andreas Auernhammer>
- add copyObject test changing metadata and preserving etag (minio#944) <Harshavardhana>
- Add SSE-C tests for multipart, copy, get range operations (minio#941) <Harshavardhana>
- Removing conditional check for notificationInfoCh in api-notication (minio#940) <Matthew Magaldi>
- Honor prefix parameter in ListBucketPolicies API (minio#929) <kannappanr>
- test for empty objects uploaded with SSE-C headers (minio#927) <kannappanr>
- Encryption headers should also be set during initMultipart (minio#930) <Harshavardhana>
- Add support for Content-Language metadata header (minio#928) <kannappanr>
- Fix check for duplicate notification configuration entries (minio#917) <kannappanr>
- allow OS to cleanup sockets in TIME_WAIT (minio#925) <Harshavardhana>
- Sign V2: Fix signature calculation in virtual host style (minio#921) <A. Elleuch>
- bucket policy: Support json string in Principal field (minio#919) <A. Elleuch>
- Fix copyobject failure for empty files (minio#918) <kannappanr>
- Add new constructor NewWithOptions to SDK (minio#915) <poornas>
- Support redirect headers to sign again with new Host header. (minio#829) <Harshavardhana>
- Fail in PutObject if invalid user metadata is passed <Harshavadhana>
- PutObjectOptions Header: Don't include invalid header <Isaac Hess>
- increase max retry count to 10 (minio#913) <poornas>
- Add new regions for Paris and China west. (minio#905) <Harshavardhana>
- fix s3signer to use req.Host header (minio#899) <Bartłomiej Nogaś>
  • Loading branch information
harshavardhana authored and nitisht committed Mar 14, 2018
1 parent 5dc5e49 commit 4af8954
Show file tree
Hide file tree
Showing 75 changed files with 1,923 additions and 8,713 deletions.
2 changes: 1 addition & 1 deletion cmd/config-dir.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"path/filepath"
"sync"

homedir "github.com/minio/go-homedir"
homedir "github.com/mitchellh/go-homedir"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions cmd/gateway/azure/gateway-azure.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio Cloud Storage, (C) 2017 Minio, Inc.
* Minio Cloud Storage, (C) 2017, 2018 Minio, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -968,7 +968,7 @@ func (a *azureObjects) CompleteMultipartUpload(bucket, object, uploadID string,
func (a *azureObjects) SetBucketPolicy(bucket string, policyInfo policy.BucketAccessPolicy) error {
var policies []minio.BucketAccessPolicy

for prefix, policy := range policy.GetPolicies(policyInfo.Statements, bucket) {
for prefix, policy := range policy.GetPolicies(policyInfo.Statements, bucket, "") {
policies = append(policies, minio.BucketAccessPolicy{
Prefix: prefix,
Policy: policy,
Expand Down
4 changes: 2 additions & 2 deletions cmd/gateway/b2/gateway-b2.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio Cloud Storage, (C) 2017 Minio, Inc.
* Minio Cloud Storage, (C) 2017, 2018 Minio, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -690,7 +690,7 @@ func (l *b2Objects) CompleteMultipartUpload(bucket string, object string, upload
func (l *b2Objects) SetBucketPolicy(bucket string, policyInfo policy.BucketAccessPolicy) error {
var policies []minio.BucketAccessPolicy

for prefix, policy := range policy.GetPolicies(policyInfo.Statements, bucket) {
for prefix, policy := range policy.GetPolicies(policyInfo.Statements, bucket, "") {
policies = append(policies, minio.BucketAccessPolicy{
Prefix: prefix,
Policy: policy,
Expand Down
4 changes: 2 additions & 2 deletions cmd/gateway/gcs/gateway-gcs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio Cloud Storage, (C) 2017 Minio, Inc.
* Minio Cloud Storage, (C) 2017, 2018 Minio, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -1049,7 +1049,7 @@ func (l *gcsGateway) CompleteMultipartUpload(bucket string, key string, uploadID
func (l *gcsGateway) SetBucketPolicy(bucket string, policyInfo policy.BucketAccessPolicy) error {
var policies []minio.BucketAccessPolicy

for prefix, policy := range policy.GetPolicies(policyInfo.Statements, bucket) {
for prefix, policy := range policy.GetPolicies(policyInfo.Statements, bucket, "") {
policies = append(policies, minio.BucketAccessPolicy{
Prefix: prefix,
Policy: policy,
Expand Down
4 changes: 2 additions & 2 deletions cmd/gateway/oss/gateway-oss.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio Cloud Storage, (C) 2017 Minio, Inc.
* Minio Cloud Storage, (C) 2017, 2018 Minio, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -919,7 +919,7 @@ func (l *ossObjects) CompleteMultipartUpload(bucket, object, uploadID string, up
// oss.ACLPublicRead: readonly in minio terminology
// oss.ACLPrivate: none in minio terminology
func (l *ossObjects) SetBucketPolicy(bucket string, policyInfo policy.BucketAccessPolicy) error {
bucketPolicies := policy.GetPolicies(policyInfo.Statements, bucket)
bucketPolicies := policy.GetPolicies(policyInfo.Statements, bucket, "")
if len(bucketPolicies) != 1 {
return errors.Trace(minio.NotImplemented{})
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/test-utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@ func preSignV2(req *http.Request, accessKeyID, secretAccessKey string, expires i

// Sign given request using Signature V2.
func signRequestV2(req *http.Request, accessKey, secretKey string) error {
req = s3signer.SignV2(*req, accessKey, secretKey)
req = s3signer.SignV2(*req, accessKey, secretKey, false)
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/web-handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ func (web *webAPIHandlers) ListAllBucketPolicies(r *http.Request, args *ListAllB
}
}
reply.UIVersion = browser.UIVersion
for prefix, policy := range policy.GetPolicies(policyInfo.Statements, args.BucketName) {
for prefix, policy := range policy.GetPolicies(policyInfo.Statements, args.BucketName, "") {
reply.Policies = append(reply.Policies, BucketAccessPolicy{
Prefix: prefix,
Policy: policy,
Expand Down
16 changes: 0 additions & 16 deletions vendor/github.com/minio/go-homedir/README.md

This file was deleted.

64 changes: 0 additions & 64 deletions vendor/github.com/minio/go-homedir/dir_posix.go

This file was deleted.

24 changes: 0 additions & 24 deletions vendor/github.com/minio/go-homedir/dir_windows.go

This file was deleted.

68 changes: 0 additions & 68 deletions vendor/github.com/minio/go-homedir/homedir.go

This file was deleted.

114 changes: 0 additions & 114 deletions vendor/github.com/minio/go-homedir/homedir_test.go

This file was deleted.

Loading

0 comments on commit 4af8954

Please sign in to comment.