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

[gateway-gcs] Incorrect error message when creating a bucket #4320

Closed
harshavardhana opened this issue May 11, 2017 · 1 comment
Closed

[gateway-gcs] Incorrect error message when creating a bucket #4320

harshavardhana opened this issue May 11, 2017 · 1 comment
Assignees
Milestone

Comments

@harshavardhana
Copy link
Member

Expected Behavior

$ mc mb mygcs/testbucket
mc: <ERROR> Unable to make bucket `s3/testbucket`. The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again.

Current Behavior

$ mc mb --debug mygcs/testbucket
mc: <DEBUG> PUT /testbucket/ HTTP/1.1
Host: 10.0.0.13:9000
User-Agent: Minio (linux; amd64) minio-go/2.0.4 mc/2017-05-03T10:02:54Z
Content-Length: 0
Authorization: AWS4-HMAC-SHA256 Credential=minio/20170511/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=**REDACTED**
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Date: 20170511T070151Z
Accept-Encoding: gzip

mc: <DEBUG> HTTP/1.1 000 000 status code 000
Transfer-Encoding: chunked
Accept-Ranges: bytes
Content-Type: application/xml
Date: Thu, 11 May 2017 07:01:51 GMT
Server: Minio/DEVELOPMENT.2017-05-11T06-52-24Z (linux; amd64)
Vary: Origin
X-Amz-Bucket-Region: us-east-1
X-Amz-Request-Id: 14BD7B335BBDA362

cd
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code></Code><Message></Message><Key></Key><BucketName></BucketName><Resource>/testbucket/</Resource><RequestId>3L137</RequestId><HostId>3L137</HostId></Error>
0

mc: <DEBUG> Response Time:  698.062968ms

mc: <ERROR> Unable to make bucket `mygcs/testbucket`. 
 (1) mb-main.go:126 cmd.mainMakeBucket(..) Tags: [mygcs/testbucket]
 (0) client-s3.go:765 cmd.(*s3Client).MakeBucket(..)
 Release-Tag:DEVELOPMENT.2017-05-03T10-02-54Z | Commit:d9be3508f8df | Host:prtsc | OS:linux | Arch:amd64 | Lang:go1.7.5 | Mem:2.2MB/6.7MB | Heap:2.2MB/3.7MB

Possible Solution

Fix the error code propagation.

Steps to Reproduce (for bugs)

Just configure minio gateway gcs <project_id> and mc mb mygcs/testbucket

Context

GCS testing.

Your Environment

Using 8dcd491 from feature-gcs branch.

@harshavardhana harshavardhana changed the title [gateway-gcs] Incorrect error message and odd error codes sent back to client [gateway-gcs] Incorrect error message when creating a bucket May 11, 2017
@deekoder deekoder added this to the GCS milestone May 11, 2017
@deekoder deekoder assigned nitisht and unassigned nl5887 May 11, 2017
harshavardhana pushed a commit that referenced this issue May 12, 2017
- Add description for error ErrBucketAlreadyExists
harshavardhana pushed a commit that referenced this issue May 23, 2017
- Add description for error ErrBucketAlreadyExists
krisis pushed a commit to krisis/minio that referenced this issue May 25, 2017
- Add description for error ErrBucketAlreadyExists
harshavardhana pushed a commit that referenced this issue May 26, 2017
- Add description for error ErrBucketAlreadyExists
harshavardhana pushed a commit that referenced this issue May 30, 2017
- Add description for error ErrBucketAlreadyExists
harshavardhana pushed a commit that referenced this issue Jun 1, 2017
- Add description for error ErrBucketAlreadyExists
harshavardhana pushed a commit that referenced this issue Jun 6, 2017
- Add description for error ErrBucketAlreadyExists
harshavardhana pushed a commit that referenced this issue Jun 16, 2017
- Add description for error ErrBucketAlreadyExists
@lock
Copy link

lock bot commented May 6, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants