seratch / AWScala

Using AWS SDK on the Scala REPL
Other
736 stars 227 forks source link

generatePresignedUrl() for keys thats have spaces. #146

Open getmetorajesh opened 7 years ago

getmetorajesh commented 7 years ago

Whenever I try to generatePresignedUrl for keys(key: /some_folder/file name.JPG) with spaces, it generates the URL, but the URL returns 403 with the below error message

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

CptnKirk commented 7 years ago

I had a similar issue with keys that contained ':' chars. The root cause was a bug in the underlying aws sdk. awscala pulls in a very old sdk version. Manually pull in a current aws sdk version into your project and this issue should go away. I'm using 1.11.115 and the problem is gone for me.