25 Commits

Author SHA1 Message Date
Prachi Damle
c3be0f995d CLOUDSTACK-1135: [EC2 Query API] AuthorizeSecurityGroupIngress and RevokeSecurityGroupIngress fails when icmp code and type is provided
For AuthorizeSecurityGroupIngress RevokeSecurityGroupIngress query calls parse and set the icmp code and type
2013-02-12 14:45:29 -08:00
Likitha Shetty
57969843d6 CLOUDSTACK-1133: [EC2 Query API] In StopInstances add support for parameter 'force'
Propagate this parameter to CS to force stop an instance
2013-02-12 14:04:07 -08:00
Likitha Shetty
3337106693 CLOUDSTACK-1131
[EC2 Query API] RunInstances allows negative values for paramters 'MinCount' and 'MaxCount'
Add parameter validation to ensure MinCount is greater than 0 and MaxCount is great than or equal to MinCount
2013-02-12 14:01:10 -08:00
Likitha Shetty
b0b2fd4833 CLOUDSTACK-1125: [EC2 Query API] Permission denied exception when a parameter value contains space
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.
2013-02-12 13:56:36 -08:00
Likitha Shetty
06fd21bd44 CLOUDSTACK-1126: [EC2 Query API] RunInstances ignores the UserData input parameter
When EC2RunInstances is called with UserData parameter, the parameter is not propogated to CS
2013-02-11 14:20:40 -08:00
Likitha Shetty
f839ad7b53 CLOUDSTACK-1121: [EC2 Query API] RunInstances, instance is always deployed in the default security group
During EC2RunInstances, even if the security group the instance is to be deployed in specified the instance gets deployed in the default security group
2013-02-11 11:19:55 -08:00
Likitha Shetty
05280976e5 CLOUDSTACK-1120 [EC2 Query API] Parameter 'keynames' is not honoured by DescribeKeyPairs
When EC2DesribeKeyPairs is called with filter 'keynames' it ignored the key-name provided and lists all the key-pairs
2013-02-11 11:09:36 -08:00
Likitha Shetty
2364ada4df CLOUDSTACK-1119 [EC2 Query API] Add filter support for DecsribeAddresses
EC2DescribeAddresses doesn't have filter support.
Support will be available for filters -> instance-id and public-ip
2013-02-07 18:32:48 -08:00
Likitha Shetty
b5e28038cb [EC2 Query API] DescribeAvailabilityZones doesn't have any filter support.
CLOUDSTACK-1118

Support will be available for filters - zone-name and message
2013-02-07 18:00:35 -08:00
Likitha Shetty
12ad296b6c CLOUDSTACK-1117 [EC2 Query API] DescribeImageAttribute fails
EC2DescribeImageAttribute fails with 'Unsupported - only description supported' error. And this is observed for both the supported attributes 'Description' and 'LaunchPermission'
2013-02-07 17:54:02 -08:00
Prachi Damle
4e4edc9e42 CLOUDSTACK-1116 [EC2 Query API] Support for ModifyImageAttribute and ResetImageAttribute
https://reviews.apache.org/r/9213

Add support for EC2 ApiI's ModifyImageAttribute and ResetImageAttribute.
Attributes supported are Description and LaunchPermission.
2013-02-07 17:22:16 -08:00
Kelven Yang
7bd8bec68a Sync javelin with master up to 894cb8f7d9fc8b5561754a9fa541fef8f235148a 2013-01-31 17:20:19 -08:00
Likitha Shetty
64b00d0b34 [EC2 Query API] Remove the registration step since query API does not require the certificate
https://reviews.apache.org/r/8742/

While checking if the user keys exists and also while retrieving the secret-key for signature generation (Query API only), make a change to directly check in the 'cloud' DB instead of the 'cloudbridge' DB.
With this change user will not require to register the keys before making EC2 Query API calls against CS. The registration process to make EC2 SOAP API calls will remain the same.
2013-01-31 12:00:39 -08:00
Likitha Shetty
f18828d7d8 [EC2 Query API] AttachVolume fails with 'Permission Denied: Invalid Signature' error.
https://reviews.apache.org/r/8480/

In AWSAPI while forming the signature to validate an API, url-encode every parameter name with UTF-8 encoding scheme.
2013-01-31 12:00:37 -08:00
Likitha Shetty
b514735c7b [EC2 Query API] AuthorizeSecurityGroupIngress fails with 'Server.InternalError 431 Invalid protocol' error.
https://reviews.apache.org/r/8468

Before making the AuthorizeSecurityGroupIngress CloudStack API call, parse the string arguments 'FromPort' and 'ToPort' as an integer.
2013-01-31 12:00:28 -08:00
Likitha Shetty
bea669d091 [EC2 Query API] RevokeSecurityGroupIngress fails with 'EC2ResponseError'.
https://reviews.apache.org/r/8466/

[EC2 Query API] Provide DescribeKeyPairs Query API support in CS AWSAPI.
https://reviews.apache.org/r/8465/
2013-01-31 12:00:25 -08:00
Prachi Damle
3c75d53f2f more change to fix awsapi deployment with maven and jetty and Spring 2013-01-30 18:16:45 -08:00
Kelven Yang
526bb01b04 Fix awsapi issues in Spring wiring 2013-01-30 16:43:40 -08:00
Prachi Damle
4dc63f50a7 Spring hack for Ec2RestServlet 2013-01-30 15:56:56 -08:00
Alex Huang
f40e7b7511 removed componentlocator and inject 2013-01-10 11:05:20 -08:00
Rajesh Battala
39aa7d86af Moved Awsapi (EC2/S3) from Hibernate framework to CloudStack Generic Dao Framework
Created/Modified new VO's and Dao Impl classes to use Generic Dao Framework
2012-08-31 11:44:58 -07:00
David Nalley
5c3a8cd490 more license header cleanups 2012-07-04 21:41:50 -04:00
David Nalley
e984c3c098 applying chip childers patch for AWSAPI license headers
https://reviews.apache.org/r/5437/
2012-06-26 11:07:48 -04:00
Sam Robertson
cb403b1c97 Bug CS-12441: Fixing rest auth by generating QueryString to validate signature 2012-06-20 12:50:15 -07:00
prachi
bc7dbd7d96 Merging awsapi component to master 2012-05-25 14:40:49 -07:00