Info by AWS-SDK:
Jan 11, 2011 3:54:32 PM com.amazonaws.http.HttpClient execute
INFO: Sending Request: POST
http://localhost/mdb/request.mgwsi /
Parameters: (Action: PutAttributes, SignatureMethod: HmacSHA256,
ItemName: user1268118805, DomainName: usertable, Attribute.1.Value:
abc def, AWSAccessKeyId: test, Version: 2009-04-15, SignatureVersion:
2,
Attribute.1.Name: field4, Timestamp: 2011-01-11T07:54:32.164Z,
Signature: ol8ch8O1IOrUSYei5v1dbxcQKo4OTxTYUTp4sq6ry9M=, Attribute.
1.Replace: true, )
Jan 11, 2011 3:54:32 PM com.amazonaws.http.HttpClient
handleErrorResponse
INFO: Received error response: Status Code: 403, AWS Request ID:
d830030b-4312-7746-38b3-ac61b41db1eb, AWS Error Code:
SignatureDoesNotMatch, AWS Error Message: The request signature we
calculated does not match the signature you provided. Check your
Secret Access Key and signing method. Consult the service
documentation for details
Info by the trace tool:
^%zewdTrace(8)="62102,57272: string to sign:POST"_$C(10)_"localhost"_
$C(10)_"/md
b/request.mgwsi"_
$C(10)_"AWSAccessKeyId=test&Action=PutAttributes&Attr
ibute.1.Name=field4&Attribute.1.Replace=true&Attribute.
1.Value=abc%2Bd
ef&DomainName=usertable&ItemName=user1268118805&SignatureMethod=HmacSH
A256&SignatureVersion=2&Timestamp=2011-01-11T07%3A54%3A32.164Z&Version
=2009-04-15"
^%zewdTrace(9)="62102,57272: hash=1bPDemoMe43JZ9s5H8Dg18OG5aH
+5RW6Xf7E9cf6va0=;
signature rcvd=ol8ch8O1IOrUSYei5v1dbxcQKo4OTxTYUTp4sq6ry9M="
^%zewdTrace(10)="MDB request processing ended at 62102,57272"
^mdbKey(2,"Action")="PutAttributes"
^mdbKey(2,"
Attribute.1.Name")="field4"
^mdbKey(2,"Attribute.1.Replace")="true"
^mdbKey(2,"Attribute.1.Value")="abc+def" (I don't know why the
space character is considered as '+' here)
^mdbKey(2,"DomainName")="usertable"
^mdbKey(2,"ItemName")="user1268118805"
^mdbKey(2,"Signature")="ol8ch8O1IOrUSYei5v1dbxcQKo4OTxTYUTp4sq6ry9M="
^mdbKey(2,"SignatureMethod")="HmacSHA256"
^mdbKey(2,"SignatureVersion")=2
^mdbKey(2,"Timestamp")="2011-01-11T07:54:32.164Z"
^mdbKey(2,"Version")="2009-04-15"
^mdbdata(2,"Action",1)="PutAttributes"
^mdbdata(2,"
Attribute.1.Name",1)="field4"
^mdbdata(2,"Attribute.1.Replace",1)="true"
^mdbdata(2,"Attribute.1.Value",1)="abc+def"
^mdbdata(2,"DomainName",1)="usertable"
^mdbdata(2,"ItemName",1)="user1268118805"
^mdbdata(2,"Signature",1)="ol8ch8O1IOrUSYei5v1dbxcQKo4OTxTYUTp4sq6ry9M
%3D"
^mdbdata(2,"SignatureMethod",1)="HmacSHA256"
^mdbdata(2,"SignatureVersion",1)=2
^mdbdata(2,"Timestamp",1)="2011-01-11T07%3A54%3A32.164Z"
^mdbdata(2,"Version",1)="2009-04-15"
On Jan 10, 5:42 pm, Rob Tweed <
rob.tw...@gmail.com> wrote:
> So just to completely clarify, can you post the relevant values that were
> in ^%zewdTrace, ^mdbKey and ^mdbdata so I can correctly trace the issue
> through the M/DB code
>
> Basically it sounds like the Java AWS-SDK is behaving differently from most
> other SimpleDB clients, but then again nothing ever surprises me about
> Java....
>
> Cheers
>
> Rob
>
> On 10 January 2011 08:50, Dennis <
dennis.sun...@gmail.com> wrote:
>
>
>
>
>