zulfiker / aws4c

Automatically exported from code.google.com/p/aws4c
GNU Lesser General Public License v3.0
0 stars 0 forks source link

__aws_urlencode #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Send a message to SQS like: {Hello}[Queue]
2. Receive a Bad request

What is the expected output? What do you see instead?
Send message should succeed

What version of the product are you using? On what operating system?
All

Please provide any additional information below.
badChars in the url encoding functions needs to have "<>{}[]()" included:

static void __aws_urlencode ( char * src, char * dest, int nDest )
{ 
...
  const char * badChrs = " \n$&+,/:;=?@<>[]{}()";
...

Original issue reported on code.google.com by joelehew...@gmail.com on 4 Sep 2012 at 11:17

GoogleCodeExporter commented 8 years ago
http://docs.amazonwebservices.com/AWSSimpleQueueService/latest/SQSDeveloperGuide
/Query_QueryAuth.html

Original comment by joelehew...@gmail.com on 4 Sep 2012 at 11:17

GoogleCodeExporter commented 8 years ago
In order to be able to send json messages to queue, the fix should include at 
least " in the badChrs string (the below example has also ' and !)

static void __aws_urlencode ( char * src, char * dest, int nDest )
{ 
...
  const char * badChrs = " \n$&+,/:;=?@<>[]{}()!\"'";
...

Original comment by jukka.ho...@gmail.com on 17 Sep 2012 at 5:31