newapplesho / aws-sdk-smalltalk

AWS SDK for Smalltalk
MIT License
38 stars 16 forks source link

Znurl>>printpathstring doen't encode properly the canoncal URI. #10

Closed mattonem closed 4 years ago

mattonem commented 4 years ago

$: is kept as it is defined as a safe character which is wrong according to RFC 3986 (but amazon needs it this way)... It should be turned into %3A. We could consider using the String>>urlEncoded method, but this one turns $/ into %2F... which is wrong for AWS.... So I implemented my own one... It is specially important when there is an ARN in the uri.

see doc: https://docs.aws.amazon.com/fr_fr/general/latest/gr/sigv4-create-canonical-request.html