Unable to use S3 Path Style Access S3 URL #3342
Labels
bug
This issue is a bug.
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
s3
Describe the bug
We are using Minio which has S3 Functionality, by default the URL is minio.blah.randomurl.com/bucketname/, however, when we provide that URL the AWS S3 SDK falls over, it looks like other libraries (Java for example) allow you to use this bucket formatting with things like withPathStyleAccessEnabled but I can't see that on the AWS .net API__
Expected Behavior
Able to use either bucketname.minio.blah.randomurl.com/ or minio.blah.randomurl.com/bucketname/ as a URL for S3 Storage with the AWS API
Current Behavior
1: Prefixes the bucket name into the ServiceURL which doesn't resolve DNS as it doesn't exist
2: No bucket name is provided and an exception is thrown because a bucketname is a required field
Reproduction Steps
Have the following confiig line for an AWS Store (Customized to your relevant Minio URL)
awsOptions.DefaultClientConfig.ServiceURL = "minio.blah.randomurl.com/bucketname/";
Possible Solution
No response
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
AWSSDK.S3 3.7.309.2
Targeted .NET Platform
Net 8
Operating System and version
Docker Container Built on Windows running on Linux
The text was updated successfully, but these errors were encountered: