cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasanna Santhanam (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-2154) create account command returns user response and not account response
Date Tue, 23 Apr 2013 15:05:17 GMT
Prasanna Santhanam created CLOUDSTACK-2154:
----------------------------------------------

             Summary: create account command returns user response and not account response
                 Key: CLOUDSTACK-2154
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2154
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: API
    Affects Versions: 4.1.0, 4.2.0
            Reporter: Prasanna Santhanam
            Assignee: Prasanna Santhanam
             Fix For: 4.1.0, 4.2.0


While looking through the response of various entities I found that
createAccountResponse returns less parameters than what is shown by
the listApis&command=createAccount&response=json call:

https://gist.github.com/vogxn/5411579

For eg: I don't see the vmlimit, primarystoragelimit, other new limits
that have been introduced in the AccountResponse.java class.

Another oddity is that I see apiKey, secretKey in the response but
they are not in the response object. This is because createAccountCmd is wrongly mapped to
the UserResponse object instead of the AccountResponse object

-@APICommand(name = "createAccount", description="Creates an account", responseObject=UserResponse.class)
+@APICommand(name = "createAccount", description="Creates an account", responseObject=AccountResponse.class)


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message