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

This change fixes region redirect issues for opt-in regions #3303

Merged
merged 4 commits into from
Nov 21, 2024

Conversation

ubaskota
Copy link
Contributor

When accessing an S3 bucket from the wrong region for opt-in regions, a 400 IllegalLocationConstraintException error is thrown. Botocore already has a functionality to automatically redirect requests to the correct region. This fix adds an additional condition to ensure that redirection happens whenever a request is made to the wrong region from opt-in regions.

@codecov-commenter
Copy link

codecov-commenter commented Nov 16, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.19%. Comparing base (b1279af) to head (0af86dc).
Report is 120 commits behind head on develop.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3303   +/-   ##
========================================
  Coverage    93.18%   93.19%           
========================================
  Files           66       66           
  Lines        14345    14376   +31     
========================================
+ Hits         13367    13397   +30     
- Misses         978      979    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

tests/unit/test_utils.py Outdated Show resolved Hide resolved
tests/unit/test_utils.py Outdated Show resolved Hide resolved
botocore/utils.py Outdated Show resolved Hide resolved
…legalLocationConstraintException error during region-redirect
botocore/utils.py Outdated Show resolved Hide resolved
@ubaskota ubaskota merged commit e84ae31 into boto:develop Nov 21, 2024
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants