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

SimpleDB Post request to PutAttributes with umlauts does not work #1

Closed
aristidb opened this issue Jan 31, 2011 · 2 comments
Closed

Comments

@aristidb
Copy link
Owner

*Aws> runAws (aws $ putAttributes "ßß" [addAttribute "ö" "ü"] "MyDomain") bc
AWS Debug: String to sign - "POST\nsdb.amazonaws.com\n/\nAWSAccessKeyId=AKIAIOJF6QL7WAZUCBBA&Action=PutAttributes&Attribute.1.Name=%C3%B6&Attribute.1.Value=%C3%BC&DomainName=MyDomain&ItemName=%C3%9F%C3%9F&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-01-31T14%3A19%3A06&Version=2009-04-15"
*** Exception: SdbError {sdbStatusCode = 403, sdbErrorCode = SignatureDoesNotMatch, sdbErrorMessage = "The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.", sdbErrorMetadata = FromSdbMetadata (SdbMetadata {requestId = "4ab63c9c-5d2e-0bfd-f6eb-a544555e63f4", boxUsage = Nothing})}

where bc uses a POST configuration

*Aws> runAws (aws $ putAttributes "ßß" [addAttribute "ö" "ü"] "MyDomain") c
AWS Debug: String to sign - "GET\nsdb.amazonaws.com\n/\nAWSAccessKeyId=AKIAIOJF6QL7WAZUCBBA&Action=PutAttributes&Attribute.1.Name=%C3%B6&Attribute.1.Value=%C3%BC&DomainName=MyDomain&ItemName=%C3%9F%C3%9F&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-01-31T14%3A18%3A57&Version=2009-04-15"
SdbResponse {fromSdbResponse = PutAttributesResponse, sdbResponseMetadata = SdbMetadata {requestId = "80dcad41-8e89-c3f9-db94-09190487ff87", boxUsage = Just "0.0000219909"}}

here with GET configuration

@aristidb
Copy link
Owner Author

Work-around: 03cd6ed

Simply use GET as the default...

@aristidb
Copy link
Owner Author

aristidb commented Feb 1, 2011

Solved d1d655c

This issue was closed.
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

1 participant