cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jessica Wang (JIRA)" <>
Subject [jira] [Commented] (CLOUDSTACK-3364) [UI] normal users are not allowed to edit their own iso
Date Wed, 09 Oct 2013 18:02:41 GMT


Jessica Wang commented on CLOUDSTACK-3364:


>  At the moment, I think that for Isos we should allow to edit it so would call it an
API bug.

> Register Iso does provide an option to mark an ISO featured. I see that in the latest
That only works for admin, but NOT normal user.

If you log in as a normal user, then pass “isfeatured=true” to registerIso API, API will
ignore it. 
The newly registered template will have “isfeatured: false”. 

    "registerisoresponse": {
        "count": 1,
        "iso": [
                "id": "9b903876-f17c-4634-8463-8e3025259956",
                "name": "normalUserIso1",
                "displaytext": "normalUserIso1",
                "ispublic": false,
                "created": "2013-10-09T10:52:38-0700",
                "isready": false,
                "bootable": true,
                "isfeatured": false,
                "crossZones": false,
                "ostypeid": "b8cbfd6c-2d40-11e3-86aa-3c970e739c3e",
                "ostypename": "Apple Mac OS X 10.6 (32-bit)",
                "account": "aaa_user",
                "zoneid": "6bcd3bd9-591c-4d99-a164-d05b87df1b04",
                "zonename": "jw-adv",
                "status": "",
                "domain": "aaa",
                "domainid": "47b09d73-84ef-48dc-9b73-1720bad600cb",
                "isextractable": false,
                "tags": []


> [UI] normal users are not allowed to edit their own iso
> -------------------------------------------------------
>                 Key: CLOUDSTACK-3364
>                 URL:
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: UI
>    Affects Versions: 4.2.0
>            Reporter: shweta agarwal
>            Assignee: Jessica Wang
>             Fix For: 4.2.1
> Repro steps:
> 1.Create a domain
> 2.create a account under that domain
> 3.create a ISO as a account under the non root domain
> 4.Edit the ISO
> BUg :
> gets message: 
> Only ROOT admins are allowed to modify this attribute.
> API:
> response:
> { "updateisopermissionsresponse" : {"uuidList":[],"errorcode":431,"cserrorcode":4350,"errortext":"Only
ROOT admins are allowed to modify this attribute."} }
> This may be because in case of edit ISO we show  extractable and featured field as editable
to normal user , which normal user is not allowed to do  and api passes these as parameters
> In case of template these fields are shown as non editable hence API passed does not
contain isfeatured and isextractable fields

This message was sent by Atlassian JIRA

View raw message