minio/minio-dotnet

StatObjectAsync switches from s3.HeadObject to s3.GetObject

poulfoged opened this issue · 1 comments

Minio version 6.0.1

When performing StatObjectAsync it seems to matter if the object id contains an extension or not.

(Bucket exists, object does not)

This request:

var stats = await minio.StatObjectAsync(new StatObjectArgs()
     .WithBucket("bucket")
     .WithObject("key/doc"));

Gives s3.HeadObject in Minio as expected.

Where as:

var stats = await minio.StatObjectAsync(new StatObjectArgs()
    .WithBucket("bucket")
    .WithObject("key/doc.pdf"));

Gives s3.GetObject (and Minio returns 403 forbidden)

-> Would not expect the extension to change behaviour.

I'm sorry. I believe that it is Cloudflare that changes the requests and that the client works as expected.