function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
KnickKnick 

AWS S3 Error: SignatureDoesNotMatch

Hello,

 

I've just installed Force.com for Amazon Web Services and I'm trying to get the samples to work.

With S3 Samples, I can create a bucket and then upload files.  But, when I try to display them by clicking on the link, I get the error: SignatureDoesNotMatch

 

Message: The request signature we calculated does not match the signature you provided. Check your key and signing method.

 

It's coming from the redirectToS3Key() method in the AWS_S3_ExampleController class.

 

Thanks in advance.

 

 

GoForceGoGoForceGo

 

This is old thread, but changing the URL makes it work.  Probably has something to do with Amazon virtual vs. path based URLs.

 

 

    //String url = 'http://'+bucketToList+'.s3.amazonaws.com/'+filename+'?AWSAccessKeyId='+as3.key+'&Expires='+Lexpires+'&Signature='+signed;
        String url = 'http://s3.amazonaws.com/'+ bucketToList + '/' +filename+'?AWSAccessKeyId='+as3.key+'&Expires='+Lexpires+'&Signature='+signed;

 

 

 

 

GoForceGoGoForceGo

 

Virtual paths accept lower-case bucket names only. The first url would work if bucket names were lowercase only.

 

S3-LinkS3-Link
S3- Link is FREE App for Salesforce - Amazon Connector. Its also available on Appexchange. 

 1. Create Amazon S3 file for standard Salesforce attachment through
    trigger.
 2. Upload attachments on Amazon S3 and create reference in Salesforc to
    access those attachments
 3. Attach file related to any Salesforce object on Amazon.
 4. Unlimited free storage.
 5. Auto backup Event logs / inbound email attachments.
 6. Server Side Encryption: AES-256
 7. No file size limit for upload.
 8. File access control capabiliy.
 9. Track file downloads by users.
 10. File exlorer capability.

https://appexchange.salesforce.com/listingDetail?listingId=a0N3000000CW1OXEA1

Here is our email address. Let us know if you have any query.
support@neiloncloud.com

Thanks.