minio/minio-dotnet

No exception when getting objects with invalid credentials

csireszabolcs opened this issue · 2 comments

Steps To Reproduce

Add and configure MinIo client with invalid credentials (AccessKey or SecretKey)

Call GetObjectAsync:
await minioClient.GetObjectAsync(args);

No exception throws, returns ObjectStat with empty values

Expected behavior

Return AccessDeniedException
Working properly with version 6.0.1

Version

Minio 6.0.2

Hi @csireszabolcs,

You are right. It needs to be fixed.

It's the same issue described in #1041 with an active PullRequest #1057.