-
Enhancement
-
Resolution: Done
-
Major
-
None
-
None
In the above PR, S3 sdk has been upgraded from 2.17.x to 2.18+, where S3 has a behavior change that it will build URL using virtual-hosted–style instead of path-style (Document use of disableHostPrefixInjection for 2.18.x · Issue #3524 · aws/aws-sdk-java-v2). However, the S3Mock container doesn't support virtual-hosted-style yet (Amazon S3 virtual-hosted-style buckets fail with java.net.UnknownHostException · Issue #247 · adobe/S3Mock).
The proposed fix is to add an additional configuration (forcePathStyle) for S3SchemaHistory that indicates whether to use path-style URL or not.
Note: Real S3 use case shouldn't be impacted as real S3 bucket should just support virtual-hosted-style URL, it's only the local test that doesn't support virtual-hosted-style URL.