mirror of
https://github.com/apache/jclouds.git
synced 2025-02-08 02:59:46 +00:00
343da68502
Commit 69a8304 caused the CloudStack QuerySigner to generate invalid signatures where key names contained square brackets, such as in the "iptonetworklist[N]" field to deployVirtualMachine. The commit changed the whole query string being URL-encoded, whereas previously the field values were encoded but the field names were not. The CloudStack API guide says that values that should be encoded for signing but not field names, and indeed the commit does cause signatures to be rejected. This commit reverses the change to QuerySigner.createStringToSign() and adds a unit test for this case.