SDK stopped supporting specifying S3 key path in bucket name property #3021
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've been using similar code at times to upload to S3. We are specifying the path to the object as part of the bucket name:
The above snippet worked. Once we upgraded to AWSSDK.S3 3.7.104.26, AWSSDK.Core 3.7.107 (I believe it's actually the Core version that dropped the support somehow) we started getting this exception:
I have confirmed that switching the code to the following works:
I am hoping there is a different workaround that doesn't involve scouring our large codebase. Is it possible to get this fixed and supported again?
Expected Behavior
The request to succeed as is has in previous versions of the SDK.
Current Behavior
The client throws this exception
Reproduction Steps
Possible Solution
No response
Additional Information/Context
I know that current documentation doesn't suggest constructing the upload request this way. I don't know if this was ever purposefully supported.
AWS .NET SDK and/or Package version used
Specifying path in bucket name works in this version and previous:
AWSSDK.S3 3.7.104.25
AWSSDK.Core 3.7.106.45
Specifying the path breaks in this Core version:
AWSSDK.S3 3.7.104.26
AWSSDK.Core 3.7.107
The request will fail if I specify AWSSDK.S3 3.7.104.25 w/ Core version 3.7.107.
Targeted .NET Platform
.NET 6, .NET Framework 4.7.2
Operating System and version
Windows 10
The text was updated successfully, but these errors were encountered: