You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using S3 SDK for .net, we started to meet 403 forbidden error recently when using GetObjectMetadata method when bucketName parameter has slash(/) in it, like "bucketName/subfolder".
Regression Issue
Select this option if this issue appears to be a regression.
Expected Behavior
It works before when bucketName parameter has slash, like "bucketName/subfolder", any server side behavior change we need to be aware?
Current Behavior
GetMetadataObejct('bucketName/subfolder', 'keyName', null) failed with Error making request with Error Code Forbidden and Http Status Code Forbidden. No further error information was returned by the service.
The remote server returned an error: (403) Forbidden.
Reproduction Steps
Code snippet objectMetadata = client.GetObjectMetadata(bucketName, key, null); // bucket name with slash(/) in side
The SDK used to (unintentionally) allow for the key prefix name to be specified as part of the bucket name, but this changed back in 2022 (see this comment for more details: #2622 (comment)).
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
Hi team,
I'm using S3 SDK for .net, we started to meet 403 forbidden error recently when using GetObjectMetadata method when bucketName parameter has slash(/) in it, like "bucketName/subfolder".
Regression Issue
Expected Behavior
It works before when bucketName parameter has slash, like "bucketName/subfolder", any server side behavior change we need to be aware?
Current Behavior
GetMetadataObejct('bucketName/subfolder', 'keyName', null) failed with Error making request with Error Code Forbidden and Http Status Code Forbidden. No further error information was returned by the service.
The remote server returned an error: (403) Forbidden.
Reproduction Steps
Code snippet
objectMetadata = client.GetObjectMetadata(bucketName, key, null); // bucket name with slash(/) in side
Possible Solution
No response
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
Package reference
Targeted .NET Platform
.NET Framework 4.7.2
Operating System and version
Windows
The text was updated successfully, but these errors were encountered: