Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

putItem() yields invalid signature when character '!' is present in value #12

Open
arturadib opened this issue May 15, 2011 · 6 comments

Comments

@arturadib
Copy link
Collaborator

The following code makes Amazon respond with HTTP 403 and error code "SignatureDoesNotMatch":

var simpledb = require('simpledb');

sdb = new simpledb.SimpleDB({keyid:'...', secret:'...'});
sdb.putItem('test', 'item01', {my_key:'this character will break the request: !'}, function(err){
  if (err) throw err.Message;
});

When I remove the exclamation mark from the item no error is returned.

@crcastle
Copy link
Collaborator

I believe this would be fixed by this pull request on the aws-lib library. I have a similar issue with other characters.

https://github.com/livelycode/aws-lib/pull/19

@arturadib
Copy link
Collaborator Author

Yep. Someone made a pull request to another fork of aws-lib too:

https://github.com/mirkok/aws-lib/pull/1

What other characters are you having trouble with?

@crcastle
Copy link
Collaborator

oops, sorry. I meant to say I had a similar issue. @mirkok fixed it with my pull request several months ago (livelycode/aws-lib@c8030cc). guess i missed this character. thanks guys.

@rjrodger
Copy link
Owner

Hi Guys - yes this looks like an aws-lib signing issue similar to the previous one.

@aarong
Copy link

aarong commented Nov 1, 2011

Can the fix be brought into the main code base? I just installed the module and ran into this problem -- took me quite a while to single out the cause.

@rjrodger
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants