Login

    Register

Managed Hosting

PROJECT CATEGORIES

 

Amazon S3 REST Wrapper
Project Home Blog Forums Known Issues External Project Link Contact Project

Amazon S3 REST Wrapper Issue: getObject()

Name: getObject()
ID: 1
Project: Amazon S3 REST Wrapper
Type: Bug
Area: Code
Severity: Normal
Status: Fixed
Related URL:
Creator: Jeff Roberson
Created: 03/21/08 4:28 PM
Updated: 06/13/08 12:31 AM
Description: When you use the getObject() method the returned URL doesn't work. Is there a fix for this?

?
   <Error>
<Code>SignatureDoesNotMatch</Code>
?
   <Message>
The request signature we calculated does not match the signature you provided. Check your key and signing method.
</Message>
<RequestId>E202A023178C5869</RequestId>
<SignatureProvided>sRS syTP lQmt2sI2pLivd0YFiQ=</SignatureProvided>
?
   <StringToSignBytes>
47 45 54 0a 0a 0a 31 32 30 36 31 33 35 31 34 37 0a 2f 69 64 5f 74 65 73 74 2f 70 72 6f 64 75 63 74 2f 44 33 30 41 44 44 34 33 2d 41 37 37 41 2d 33 39 37 36 2d 41 43 46 37 2d 34 42 45 45 36 39 46 43 31 33 43 45 2f 70 68 6f 74 6f 2d 34 2e 6a 70 67
</StringToSignBytes>
<AWSAccessKeyId>1978P03M50TFFYR741G2</AWSAccessKeyId>
?
   <HostId>
Z/eO9tUmgCZ2OeB3boOus90md+p2AyST3mHSjr5+YyCQz+whTQeEQqffeK7O+dQz
</HostId>
?
   <StringToSign>
GET


1206135147
/id_test/product/D30ADD43-A77A-3976-ACF7-4BEE69FC13CE/photo-4.jpg
</StringToSign>
</Error>
History: Created by hippiex (Jeff Roberson) : 03/21/08 4:28 PM

Comment by hippiex (Jeff Roberson) : 03/21/08 4:46 PM
This seems to fix it:

<cfset timedAmazonLink = "http://s3.amazonaws.com/#arguments.bucketName#/#arguments.fileKey#?AWSAccessKeyId=#variables.accessKeyId#&Expires=#epochTime#&Signature=#urlencodedformat(signature)#">

Updated by danziger (Joe Danziger) : 06/13/08 12:31 AM
Fixed in v1.5

To add a comment to this bug, please login using the link above.