Kelsonk / as3awss3lib

Automatically exported from code.google.com/p/as3awss3lib
0 stars 0 forks source link

getTemporaryObjectURL method is returning the incorrect url as Amazon has changed their URL format #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a new S3 object and upload it
2. call the getTemporaryObjectURL method
3. copy and paste the returned usl into a browser

What is the expected output? What do you see instead?
- That you would see the object you uploaded.  
- An authentication error

What version of the product are you using? On what operating system?
the latest, checked out on Friday of last week.

Please provide any additional information below.
Amazon has changed their signed URL formatting for objects.
change line 279 in AWSS3 to read:

            url += "://" + escape(bucketName) +  "." + AMAZON_ENDPOINT + "." + 
escape(objectName) + "?
AWSAccessKeyId="+this.accessKey+"&Expires="+s+"&Signature="+authString;

Original issue reported on code.google.com by josef.sa...@gmail.com on 31 Jul 2009 at 4:23

GoogleCodeExporter commented 9 years ago
correction: the line should read:
            url += "://" + escape(bucketName) +  "." + AMAZON_ENDPOINT + "/" + escape(objectName) + "?
AWSAccessKeyId="+this.accessKey+"&Expires="+s+"&Signature="+authString;

Original comment by josef.sa...@gmail.com on 31 Jul 2009 at 4:28