BurningPockets is back!
October 12, 2009 11:51.24 PM
So I wanted to play with some Amazon Web Services (see earlier post) and I liked this URL too much to let it just waste $10 a year.
BurningPockets.com round II
So I wanted to play with some Amazon Web Services (see earlier post) and I liked this URL too much to let it just waste $10 a year.
BurningPockets.com round II
I had my fair share of writing Amazon Web Services applications and recently decided to try again. Amazon decided to make some changes and require all developers to sign every application before making the request with a mix of algorithms including Base64'ing the entire signature before sending. This sounds easy and in fact, is easy, EXCEPT when you use the incorrect libraries.
I'm a big fan of reuse so I tried using the Apache Commons Codec library. This failed. I tried downloading the Amazon examples. This failed again. I finally noticed after five attempts and three nights of misery that the examples used the commons-codec-1.3 while I was using the newest release, commons-codec-1.4.
After a quick swap of the libraries on the classpath, my code worked like a charm. Whatever happened here, it is not in sync with Amazon's Base64(I'm guessing) algorithm.