You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Deepti Dohare <de...@citrix.com> on 2012/06/27 09:07:38 UTC

domain admin can't update the resource limit through UI but can update through API - Is it a UI bug?

Hi,

A domain admin can't update the resource limit  through UI but can update through API.

API: Caller is domain admin
 url : http://localhost:8080/client/api?command=updateResourceLimit&resourcetype=0&max=6&account=u1&domainid=2&apikey=_38ICSSeHVGAS10FjAZdd31zn4-QOfrMi-aEEYEJbNetVusB4mNjJtN2oP7vLeINiUKjvTCq7Sb5Bq5c7qmiyg&signature=qJiTs3UqOIGRctoTjFxhpY853oc%3d

response:
<updateresourcelimitresponse cloud-stack-version="3.0.3.2012-06-26T07:02:29Z">
<resourcelimit>
<account>u1</account>
<domainid>b897c73d-bd43-4039-aa79-61cc5bd6e275</domainid>
<domain>D1</domain>
<resourcetype>0</resourcetype>
<max>6</max>
</resourcelimit>
</updateresourcelimitresponse>

But in UI, there is no edit option for update resource limit, when a domain admin logs in.
Is it a UI bug or is it by design?

Thanks
Deepti

Re: domain admin can't update the resource limit through UI but can update through API - Is it a UI bug?

Posted by Alena Prokharchyk <Al...@citrix.com>.
On 6/27/12 12:07 AM, "Deepti Dohare" <de...@citrix.com> wrote:

>Hi,
>
>A domain admin can't update the resource limit  through UI but can update
>through API.
>
>API: Caller is domain admin
> url : 
>http://localhost:8080/client/api?command=updateResourceLimit&resourcetype=
>0&max=6&account=u1&domainid=2&apikey=_38ICSSeHVGAS10FjAZdd31zn4-QOfrMi-aEE
>YEJbNetVusB4mNjJtN2oP7vLeINiUKjvTCq7Sb5Bq5c7qmiyg&signature=qJiTs3UqOIGRct
>oTjFxhpY853oc%3d
>
>response:
><updateresourcelimitresponse
>cloud-stack-version="3.0.3.2012-06-26T07:02:29Z">
><resourcelimit>
><account>u1</account>
><domainid>b897c73d-bd43-4039-aa79-61cc5bd6e275</domainid>
><domain>D1</domain>
><resourcetype>0</resourcetype>
><max>6</max>
></resourcelimit>
></updateresourcelimitresponse>
>
>But in UI, there is no edit option for update resource limit, when a
>domain admin logs in.
>Is it a UI bug or is it by design?
>
>Thanks
>Deepti
>


We should add the following:

* in the domain admin UI, add option allowing domain admin to update
resource limits for his accounts.
* in the java code, make sure domain admin can't update resource limits
for himself; he can do it just for the accounts of his domain/subdomains.

-Alena.