Closed GoogleCodeExporter closed 9 years ago
I think I found the bugs.
First, The class only writes the content-type header if content is not null.
which is sometimes the case in GS API.
Second, it assumes that request.getRawPath() is not null and appends a "null"
at the end of the base string.
Attached is my version that signs correctly.
It's possible of course, that I'm not using the library correctly.
Thanks,
Raviv.
Original comment by street...@gmail.com
on 20 Nov 2010 at 11:14
Attachments:
Thanks for your effort Raviv. We'll take a look at your proposed fix, do some
testing, and hopefully release the fix as version 1.2.2.
Original comment by yan...@google.com
on 14 Dec 2010 at 1:19
Started working on this issue. A couple of more issues identified with the
signer. Two of them worth mentioning are:
/ (for ListAllMyBuckets)
GET filename (http://bucketname.commondatastorage.googleapis.com/object?acl
Original comment by api.an...@gmail.com
on 15 Dec 2010 at 10:33
Problem with getRawPath() being null is fixed. Please don't use "content-type"
header directly and instead use an instance of HttpContent. If the HttpContent
of a request is null, we will assume there is no content.
Original comment by yan...@google.com
on 20 Dec 2010 at 6:11
Original comment by yan...@google.com
on 6 Jan 2011 at 2:54
Original comment by yan...@google.com
on 8 Jan 2011 at 6:42
Original issue reported on code.google.com by
street...@gmail.com
on 19 Nov 2010 at 8:44