aws-sdk-perl icon indicating copy to clipboard operation
aws-sdk-perl copied to clipboard

PutBucketLifecycleConfiguration Sort of fixed

Open byterock opened this issue 6 years ago • 0 comments

This is a sore point I think raised else where

PutBucketLifecycleConfiguration

the API requires a 'content-md5' but it is missing from Boto

    "ContentMD5":{
      "shape":"ContentMD5",
      "documentation":"<p>Addeed autmatically by Paws</p>",
      "location":"header",
      "locationName":"Content-MD5"
    },

The fix is the rather ugly and I chage the templates agout so all S3 calls now have

has ContentMD5 => (is => 'ro', isa => 'Str', header_name => 'Content-MD5', auto => 'MD5', traits => ['AutoInHeader'] );

Fixes this but adds that attribute to all API calls

I checked and it does not seem to bother AWS if we send the MD5 along even when they dont ask for it.

I also checked the JAVA CODE and it does the same automajekly adds it in on every call and me thinks python does the same?

Should I keep this one or just make the change to Boto and hoefully the boto maintainers will add it in??

byterock avatar Nov 15 '19 01:11 byterock