-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use additional checksum algorithms when using put_object() #611
Comments
Can you share the logs please, |
Absolutely, thanks @DyfanJones! Below are the logs you requested, along with some additional background information, in case it's helpful: Background Info: What I am looking to do/take advantage of is covered here. However, rather than utilizing the additional checksums feature via say the s3 console, I'm hoping to do so programmatically via Requested Logs retrieved via
|
Thanks, will have a look at the backend to see why the headers aren't being attached 🤔 |
From checking over I believe don't currently support this functionality. Will need to investigate how the other sdk implement this so that we can bring it over to paws. |
botocore: https://github.com/boto/botocore/blob/develop/botocore/httpchecksum.py Note: it looks like aws sdk go v1 only has md5 for it's checksum algorithms |
Not a 100% sure how to implement crc32c algorithm. It looks like |
Raise a ticket with the package |
For the time being will focus on the other checksum algorithms. After they have been completed we can loop back to crc32c. |
Thanks for all the investigating/work thusfar @DyfanJones! Please let me know if there's anything else I can provide. |
No worries, I am on holiday for the next 2 weeks. I will start work on this when I get back. In the meantime please feel free to raise any PRs, more than happy to review them. |
hi @DyfanJones! hope you had a good holiday...wanted to check in to see if there were any updates here. |
Hi @tkwilos we have some fantastic news, @eddelbuettel has implemented the This feature will take a little time as I am fairly busy with a new born. I will keep you updated on the progress of this feature. |
Please feel free to raise PR if you are able to get to this before me :) |
Yep meant to circle back too. It's all there but not yet fully wired up in the digest version on CRAN. However, crc32c is there and can be used and relied upon. We should circle back 'time permitting' to make better use of it in digest too. |
AWS SDK GO V2 checksum implementation |
Thanks so much for the updates and efforts @DyfanJones & @eddelbuettel! |
Using
paws
, I am looking to store additional checksum data when usings3$put_object()
, specificallysha1
values. However, I'm having issues successfully setting this when executingput_object()
.Is this something I can currently do with
paws
? Below is some basic sample code and the associated error message.Sample code:
Associated error:
Running the example above produces the following error message:
Error: InvalidRequest (HTTP 400). x-amz-sdk-checksum-algorithm specified, but no corresponding x-amz-checksum-* or x-amz-trailer headers were found.
Looking through the
paws
documentation, I am not sure how to set the "headers" referenced in the error message above.What I'm ultimately hoping for is, when using
s3$put_object()
, I can store thesha1
value for the object I am adding to s3, then I want to have the ability to retrieve that data using something likes3$list_objects()
Thanks in advance.
The text was updated successfully, but these errors were encountered: