Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

Follow redirect for buckets in other regions #25

Open
coderanger opened this issue Jun 15, 2016 · 0 comments
Open

Follow redirect for buckets in other regions #25

coderanger opened this issue Jun 15, 2016 · 0 comments

Comments

@coderanger
Copy link
Member

See #24

ab added a commit to 18F/citadel that referenced this issue Jul 29, 2017
- Actually check that the HTTP response code is an 200 OK so that we
  don't return nil if things have actually failed.
- Handle bucket HTTP redirection. When you request an S3 bucket from the
  wrong region, it returns a 301 redirect with the correct region in a
  header, but no Location header. Because the Chef HTTP client doesn't
  recognize redirects unless the Location header is set, Citadel would
  previously return nil. Instead, raise an exception indicating the
  correct region that should have been passed.
- Also raise an error if we get any unexpected HTTP status.

Fixes: poise#25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant