Return-Path: X-Original-To: apmail-incubator-cloudstack-issues-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8AFE2D25A for ; Tue, 5 Mar 2013 11:41:16 +0000 (UTC) Received: (qmail 44470 invoked by uid 500); 5 Mar 2013 11:41:16 -0000 Delivered-To: apmail-incubator-cloudstack-issues-archive@incubator.apache.org Received: (qmail 44360 invoked by uid 500); 5 Mar 2013 11:41:14 -0000 Mailing-List: contact cloudstack-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-issues@incubator.apache.org Received: (qmail 44341 invoked by uid 99); 5 Mar 2013 11:41:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Mar 2013 11:41:14 +0000 Date: Tue, 5 Mar 2013 11:41:14 +0000 (UTC) From: "Abhinav Roy (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (CLOUDSTACK-1449) listAccounts and listProjectAccounts API lists all the users not account-specific users for each account returned MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-1449?page=3Dcom.atl= assian.jira.plugin.system.issuetabpanels:all-tabpanel ] Abhinav Roy closed CLOUDSTACK-1449. ----------------------------------- =20 > listAccounts and listProjectAccounts API lists all the users not account-= specific users for each account returned > -------------------------------------------------------------------------= ---------------------------------------- > > Key: CLOUDSTACK-1449 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-144= 9 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Components: API > Affects Versions: 4.1.0 > Environment: MS - Rhel 6.3 > CS - 4.1.0 > Reporter: Abhinav Roy > Assignee: Min Chen > Labels: integration-test > Fix For: 4.1.0 > > > Description : > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > listAccounts and listProjectAccounts APIs list all the accounts even when= the id of a particular account is passed. > Steps : > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 1. Deploy a CS setup of version 4.1.0 > 2. Create multiple accounts > 3. Create Projects. > 4. Execute the listAccounts API to list details of a prticular account b= y ruuning the following URL in your browser > http://10.102.192.125:8096/client/api?command=3DlistAccounts&id=3D3=20 > Execute the listProjectAccounts API to list details of a prticular acco= unt by ruuning the following URL in your browser > http://10.102.192.125:8096/client/api?command=3DlistProjectAccounts&proje= ctid=3D1 > Expected behaviour : > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 1. Details of only that account should be listed whose "id" has been pass= ed as a parameter in the URL > or account details of only that project should be listed whose "projectid= " has been passed in the URL. > Observed Behaviour : > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 1. The output of http://10.102.192.125:8096/client/api?command=3DlistProj= ectAccounts&projectid=3D1 is > 136cf833d-092f-47df-b911-8de7adfd03ba<= /projectid>root project51ef2f64-8189-11e2-983= c-fef34996d384admin1Admin2bcf95c6-8189-11e2-983c-fef34996d384ROOT51eedc08-8189-11e2-983c-fef34996d384= systemsystemcloud2013-02-28T20:29:15+0530enabledsystem12bcf95c6-8189-1= 1e2-983c-fef34996d384ROOT51ee9c16-81= 89-11e2-983c-fef34996d384false051ef648e-8189-11e2-983c-= fef34996d384adminadmincloud2013-02-28T20:29:15+0530ena= bledadmin12= bcf95c6-8189-11e2-983c-fef34996d384ROOT51ef2f64-8189-11e2-983c-fef34996d384fal= se09bb460ef-a= 3e8-4339-9087-af50d5e7c15auser1user1clouduser1@cloud.com= 2013-02-28T15:23:53+0530enableduser10d88d231d-0c99-46e9-b252-155b66fb= 5554user4bdc3ebb-32e2-4a4b-aca5-de11= d6434a0efalse0 > -- > > here we see that even though we asked for account details only fo= r project having project id=3D1 , it has listed all the CS accounts.=20 > Also the "count=3D1 ", which is correct. > 2. The output of http://10.102.192.125:8096/client/api?command=3DlistAcco= unts&id=3D3 is > 14bdc3ebb-32e2-4a4b-aca5-de11d6434a0euser10d88d231d-0c99-46e9-b252-155b66fb5554= user20020200132002020<= snapshottotal>02020020Unlimited0Unlimited20020enabled51eedc08-8189-11e2-983c-fe= f34996d384systemsystemcloud2013-02-28T20:29:15+0530ena= bledsystem1= 2bcf95c6-8189-11e2-983c-fef34996d384ROOT51ee9c16-8189-11e2-983c-fef34996d384fa= lse051ef648e-= 8189-11e2-983c-fef34996d384adminadmin<= /firstname>cloud2013-02-28T20:29:15+0530enabledadmin12bcf95c6-8189-11e2-983c-fef34996d384ROOT51ef2f64-8189-11e2-983c-fef34996d384false09bb460ef-a3e8-4339-9087-af50d5e7c15auser1user1clouduser1@cloud.com2013-02-28T15:23:53+0530enableduser10d88d231d-0c99-46e= 9-b252-155b66fb5554user4bdc3ebb-32e2= -4a4b-aca5-de11d6434a0efalse00 > --- > > here again we see that we asked details only for account having i= d=3D3 but the response has all the accounts.=20 > Here again "count=3D1" is correct. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira