Kami edited a comment on issue #1417: InvalidCredsError when uploading .xlsm file to Google Storage bucket URL: https://github.com/apache/libcloud/issues/1417#issuecomment-578721952 I tried to dig in and find the root cause, but I was unable to find one. This issue only appears if all the following conditions are met: 1. Ineroperability authentication method is used 2. Object name ends with ``.xlsm`` (e.g. ``test1.xlsm``) 3. Content-Type header is ``application/vnd.ms-excel.sheet.macroEnabled.12`` If any of those three things are not met, it will work fine. What makes it look even more bizarre is that it works if explicitly specify ``extra['content_type'] = 'application/vnd.ms-excel.sheet.macroEnabled.12' even though the actual signature it calculates it will be exactly the same (I verified all the values which are used to generate the signature are the same, except the ``Date`` one). The signature itself looks fine, so I wonder if it's some bug / edge case when using Google Storage API in Interoparability mode? Having said that, probably the best course of action / workaround would be to simply use non-compatibility method with service account credentials. That's the preferred method in any case.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
