minio-dotnet icon indicating copy to clipboard operation
minio-dotnet copied to clipboard

c# package, problem to send files to IONOS S3 with objects locks

Open MarcAndreSG opened this issue 1 year ago • 1 comments

Hello everyone,

I have a problem with the C# package. I keep getting the same error message when transferring data to the IONOS S3 storage:

"Content-MD5 HTTP header is required for Put Object requests with Object Lock parameters"

I have set the MD5 content: 2024-11-07_07h45_42

And yet I still get this error message

A colleague pointed it out to me, that the name that was transferred

“X-Amz-Meta-Content-Md5”

would be!?

I told him no, I use “Content-Md5”

Then I debugged the code: 2024-11-07_07h50_39

You see the name is an other, as I set. Monio does not use the name given, but uses his own.

My question is why is that? Is that correct? Is this a bug?

MarcAndreSG avatar Nov 07 '24 07:11 MarcAndreSG

I don't know much about this package, but Content-MD5 is added if WithRetentionConfiguration has been set.

I don't know if there is any other way of setting it, so I will leave it here for someone more deeply into this package to look at it.

klauspost avatar Nov 07 '24 07:11 klauspost