pokepay / aws-sdk-lisp

AWS-SDK for Common Lisp
87 stars 19 forks source link

Fix how the request checksum is calculated and added to headers #3

Closed wsgac closed 5 years ago

wsgac commented 6 years ago

I've encountered some problems in how the library handled checksumming the requests. Here's a tiny fix.

duncan-bayne commented 6 years ago

@wsgac thanks for submitting this; I can't use HEAD right now because of this issue:

An HTTP request to "https://s3.ap-southeast-2.amazonaws.com/?Action=ListObjects&Bucket=bayne-server-backup" returned 400 bad request.

<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>InvalidRequest</Code><Message>Missing required header for this request: x-amz-content-sha256</Message><RequestId>A77D5E101A1D030E</RequestId><HostId>xwZJScF4teTKmzYnecYjHymlEG7lmXvoWpLGNsaq9D7ZfAgi5EVR/zye6+cvgIHfoczL1Wu5GNk=</HostId></Error>
   [Condition of type DEXADOR.ERROR:HTTP-REQUEST-BAD-REQUEST]
duncan-bayne commented 6 years ago

Note that this PR also introduces a dependency on https://github.com/froydnj/ironclad.