incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Likitha Shetty" <likitha.she...@citrix.com>
Subject Review Request: [EC2 Query API] Permission denied exception when a parameter value contains space
Date Fri, 01 Feb 2013 06:10:30 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/9230/
-----------------------------------------------------------

Review request for cloudstack and Prachi Damle.


Description
-------

Convert space characters in the parameters to %20 while forming a query string after url-encode
because java.net.URLEncoder performs application/x-www-form-urlencoded-type encoding and not
percent-encoding. According to RFC 3986 as required by Amazon, we need to percent-encode.


This addresses bug CLOUDSTACK-1125.


Diffs
-----

  awsapi/src/com/cloud/bridge/service/EC2RestServlet.java 78e736f 

Diff: https://reviews.apache.org/r/9230/diff/


Testing
-------

Make any EC2 Query API call with a space in the parameter value - the api call should be successfully
executed and throw an error 


Thanks,

Likitha Shetty


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message