Skip to content

bug: [wasabi] throws error if bucket owned by inactive account #455

Description

@sa7mon

Output

$ go run . -bucket animals -provider wasabi
ERRO unexpected status code: 400                   bucket_name=animals method="providers.bucketExists301()" region=us-east-1
ERRO error     | animals | unexpected status code: 400 

Expected Output

$ go run . -bucket animals -provider wasabi                                                                                                                
INFO not_exist | animals  

Provider is using the bucketExists301 check, equivalent curl:

$ curl -I -A "Go-http-client/1.1" https://s3.wasabisys.com/animals
HTTP/1.1 400 Bad Request
Content-Type: application/xml
Date: Mon, 13 Jul 2026 01:19:54 GMT
Server: WasabiS3/8.0.197-2026-04-30-931c9e62e9
x-amz-id-2: Qbv+kImp29lR3KnZvVWpS4vvCels09mdZoLfc+fHmZIMCCD8hsMb6JITnoQWfa2FeLqMRGQ8WHGv
x-amz-request-id: 7A3A055158A67E3F:A
x-wasabi-cm-reference-id: 1783905594 A14-U36.prod1.ashburn 8195149597:90194947:98

If we send a GET request instead of a HEAD, the issue is clear from the response body:

<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>BucketAccountInactive</Code><Message>The account that owns this bucket is not active.</Message><OwnerAccountCanonicalId>92A55D0A0672BD17808491B318AC8E3AB71FF3CD14C44500EF76449292DA0B10</OwnerAccountCanonicalId><RequestId>7D3D54D6B75E7701:A</RequestId><HostId>fFIcCcW8siinnN4W/IF2NjjLsqaVzi6fsjwmBu//04DqlfAmkpAmPGsGBIhcTTIJ2tQd3lxj7j2h</HostId><CMReferenceId>MTc4MzkwNTU5OCBCMTQtVTM2LnByb2QxLmFzaGJ1cm4gNjgzNjQ4ODg2Njo2NTgzODUwODo2MQ==</CMReferenceId></Error>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions