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

Fix 607 Use s3ForcePathStyle Appropriately #650

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ronilan
Copy link
Contributor

@ronilan ronilan commented May 5, 2022

Overview

This pull request fixes #607 and additional issues. It also refactors S3 Setup detect functionality and increases test coverage of existing features.

The fix to #607 can be considered a patch for #576 (by @pive). Solution is based on #608 (by @jared-duo). The latter could be merged prior to merging this pull request (for well deserved contributor karma 👍).

Change

  • Modified s3_setup detect function signature. Instead of augmenting an object (side effect) the function now gets an options object and returns a configuration object.
  • Cleaned up and commented the code used to automatically extract bucket and region from s3 url.
  • Modified versioning to add bucket name to hosted_path when s3ForcePathStyle is true.
  • Modified s3_setup to remove bucket name from prefix when s3ForcePathStyle is true.
  • Fixed console logs in publish, unpublish and info to be stylistically similar and report paths actually used.
  • Increased test coverage.

Tests

  • All tests pass.
  • Manual testing of s3ForcePathStyle options performed against play.min.io. All as expected.

- Modified function signature. Instead of augmenting an object (side effect) the function now gets an options object and returns a configuration object.
- Cleaned up of code auto used to extract bucket and region from s3 url.
- Added comments.
- Increased test coverage.
- All tests pass.
- Modified versioning to add bucket name to hosted_path when s3ForcePathStyle is true.
- Modified s3_setup to remove bucket name from prefix when s3ForcePathStyle is true.
- Added test coverage for s3ForcePathStyle cases.
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.

s3ForcePathStyle works for publishing but not installation
1 participant