Ok. I think I've figured out my the problem with the HttpAmazonS3Helper class. 

The code in the method getCanonicalizedResourceName(Reference resourceRef) 
isn't quite correct as It needs to incorporate the _bucketname_ into the path. 
Presently its just getting the resource path.

>From the S3 developer guide examples:

GET /photos/puppy.jpg HTTP/1.1 
Host: _bucketname_.s3.amazonaws.com 
Date: Tue, 27 Mar 2007 19:36:42 +0000 
Authorization: AWS 
 0PN5J17HBGZHT7JJ3X82: 
xXjDGYUmKxnwqr5KXNPGldn5LbA= 

Which should translate into the following string to sign:

GET\n 
\n 
\n 
Tue, 27 Mar 2007 19:36:42 +0000\n 
/_bucketname_/photos/puppy.jpg 

Matt.
-- 
View this message in context: 
http://n2.nabble.com/Bug-in-HttpAmazonS3Helper-class-tp2614094p2614094.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1620518

Reply via email to