Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 01AA610CF7 for ; Tue, 30 Jul 2013 17:19:51 +0000 (UTC) Received: (qmail 4224 invoked by uid 500); 30 Jul 2013 17:19:50 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 4156 invoked by uid 500); 30 Jul 2013 17:19:50 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 4054 invoked by uid 500); 30 Jul 2013 17:19:49 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 4039 invoked by uid 99); 30 Jul 2013 17:19:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jul 2013 17:19:49 +0000 Date: Tue, 30 Jul 2013 17:19:49 +0000 (UTC) From: "Jessica Wang (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (CLOUDSTACK-2717) UI is not showing check button public while registering template for user account,if global parameter "allow.public.user.templates" = false and cluster level parameter "allow.public.user.templates" = true MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-2717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jessica Wang reassigned CLOUDSTACK-2717: ---------------------------------------- Assignee: Harikrishna Patnala (was: Jessica Wang) Harikrishna, Regular does NOT have access to listConfigurations API. That's what listcapabilities API is for. listcapabilities API is available to all roles(regular user/domain admin/root admin) as apposed to listConfigurations API is only available to root-admin. So, the only way for regular user to get "allow.public.user.templates" is through listcapabilities API. Thus, please modify listcapabilities API. Jessica > UI is not showing check button public while registering template for user account,if global parameter "allow.public.user.templates" = false and cluster level parameter "allow.public.user.templates" = true > -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-2717 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2717 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: Template > Affects Versions: 4.2.0 > Reporter: prashant kumar mishra > Assignee: Harikrishna Patnala > Priority: Critical > Fix For: 4.2.0 > > Attachments: screenshot-1.jpg > > > if account level parameter "allow.public.user.templates" is set to true user should be able to register a public template through UI ;independent of global parameter. > Steps to reproduce > ================= > ================= > case 1: > ---------- > ---------- > 1-set global parameter "allow.public.user.templates" to false, restart MS > 2-set account level parameter "allow.public.user.templates" to true > Expected > -------------- > User should be able to register public template through UI(UI should show check button public) > Actual > ----------- > UI does not show check button public and templates are getting register as private template > corresponding API call > { "registertemplateresponse" : { "count":1 ,"template" : [ {"id":"e6a384b6-c6ae-40b1-8fbd-dedf917b7489","name":"wed","displaytext":"sadf","ispublic":false,"created":"2013-07-29T11:20:12-0400","isready":false,"passwordenabled":false,"format":"VHD","isfeatured":false,"crossZones":false,"ostypeid":"5e2d09c8-f843-11e2-9ba9-06f1ac000077","ostypename":"Apple Mac OS X 10.6 (32-bit)","account":"ac2","zoneid":"6ac4dbb4-1877-48d0-94a5-29d91e0b1e97","zonename":"z1","status":"","templatetype":"USER","hypervisor":"XenServer","domain":"ROOT","domainid":"2c69941a-f843-11e2-9ba9-06f1ac000077","isextractable":true,"tags":[],"sshkeyenabled":false,"isdynamicallyscalable":true} ] } } > case2: > --------- > --------- > 1-Set global parameter "allow.public.user.templates" to true;restart > 2-Set account level parameter "allow.public.user.templates" to false > expected > ------------- > UI should not show check button public;since user is not allowed to register public template > Actual > --------- > UI is showing check button public -- 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