Skip to content

301/302 redirect HTTP codes should be followed #73

@drkspace

Description

@drkspace

If you try to access a bucket with an incorrect (but valid) region, you will get the following error (this was called with AWS_REGION=us-east-2 and the bucket is in us-east-1).

301  HTTP Error 301: Moved Permanently - Set s3auth.conf region to match bucket 'Region': bucket may not be in us-east-2  [PermanentRedirect] The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.

The redirect should be followed to get to the correct region and a warning message printed. There could also be an env variable/configuration option to follow/not to follow the redirect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions