-
Notifications
You must be signed in to change notification settings - Fork 233
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
PutObjectAsync doesn't handle an 'Access Denied' specific case after upgrade to 6.0.3 #1131
Comments
This behavior you observed was because of a regression bug introduced 6.0.1 and |
hi When I use multiple languages and add the following codes `
}); There is no problem when I use English, but when I change the language, I get the following result.
|
We'll definitely address this issue, but there are higher priority tasks that take precedence. |
When using version 6.0.3 of the Minio .NET package, a specific behavior related to checking access key policy seems to have changed compared to version 6.0.0.
Here's my function when i upload a file :
`public async Task UploadFileInMinioTest(string serializedJson)
{
try
{
//minioClient
var minio = new MinioClient()
.WithEndpoint("127.0.0.1:9000")
.WithCredentials("4AQJCzaLOlAUhaF1WLYK", "8iLGYuCUCf0ARrbY80F0y98HXMvCdTtyy3uNgEFx")
.WithSSL(false)
.Build();
}`
and here's my access key policy
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:ListBucketMultipartUploads", "s3:GetBucketLocation", "s3:ListBucket" ], "Resource": [ "arn:aws:s3:::bkt-test" ] }, { "Effect": "Allow", "Action": [ "s3:PutObject" ], "Resource": [ "arn:aws:s3:::bkt-test/input/*" ] }, { "Effect": "Allow", "Action": [ "s3:GetObject", "s3:ListBucket" ], "Resource": [ "arn:aws:s3:::bkt-test/*" ] } ] }
As you can see, when it comes to uploading objects (PutObject) only folder 'input' within my bucket is allowed.
When I was using version 6.0.0, and trying to upload file in folder 'Input' (testing case sensitivity) => PutObjectAsync threw a MinioException with Access Denied message which is the expected behaviour in this case.
But when I upgraded to version 6.0.3, I no longer receive an "Access Denied" error as expected. This behavior makes it seem that the upload has succeeded, despite it not being the case.
The text was updated successfully, but these errors were encountered: