[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14090631#comment-14090631
 ] 

ASF subversion and git services commented on CLOUDSTACK-6323:
-------------------------------------------------------------

Commit 38928a44b595a7be1bf222b18154885195894f3f in cloudstack's branch 
refs/heads/master from [~bhaisaab]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=38928a4 ]

CLOUDSTACK-6323: Change getUser API arg to userapikey

By default the getUser API picks apikey arg from HTTP request to return the
User object with that api key. We use apikey in the request, so it would return
the same user calling the API. This commit uses the USER_API_KEY in the API
annotation instead.

Signed-off-by: Rohit Yadav <[email protected]>
(cherry picked from commit 72e06b4d9b40c42d28cc148a331c9c5461a10f6e)
Signed-off-by: Rohit Yadav <[email protected]>


> GetUser API always returns admin info
> -------------------------------------
>
>                 Key: CLOUDSTACK-6323
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6323
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: API
>    Affects Versions: 4.0.0, 4.1.0, 4.2.0, 4.3.0, 4.4.0
>            Reporter: Chiradeep Vittal
>            Assignee: Rohit Yadav
>             Fix For: 4.4.1
>
>
> The annotation is API_KEY for the parameter apikey which automatically gets 
> set to the requesters api key instead of the requested API key. The 
> annotation should be USER_API_KEY instead.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to