[
https://issues.apache.org/jira/browse/CLOUDSTACK-2154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13639234#comment-13639234
]
ASF subversion and git services commented on CLOUDSTACK-2154:
-------------------------------------------------------------
Commit 2712ddda26551117fea0149a7a5f7aceeedac3b1 in branch refs/heads/master
from [~tsp]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=2712ddd ]
CLOUDSTACK-2154: create account command returns user response
Fix the annotation so cloudmonkey, marvin and apidocs can process the
response of createAccount as AccountResponse and not UserResponse as was
previously mapped.
Signed-off-by: Prasanna Santhanam <[email protected]>
> 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