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 B411A10E83 for ; Mon, 1 Jul 2013 14:58:22 +0000 (UTC) Received: (qmail 55147 invoked by uid 500); 1 Jul 2013 14:58:22 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 55130 invoked by uid 500); 1 Jul 2013 14:58:21 -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 55101 invoked by uid 500); 1 Jul 2013 14:58:20 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 55082 invoked by uid 99); 1 Jul 2013 14:58:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jul 2013 14:58:20 +0000 Date: Mon, 1 Jul 2013 14:58:20 +0000 (UTC) From: "Nitin Mehta (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CLOUDSTACK-3306) Projects - Templates owned by projects that are marked as "Public" are not listed in the "community" list for other users. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Nitin Mehta created CLOUDSTACK-3306: --------------------------------------- Summary: Projects - Templates owned by projects that are marked as "Public" are not listed in the "community" list for other users. Key: CLOUDSTACK-3306 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3306 Project: CloudStack Issue Type: Bug Security Level: Public (Anyone can view this level - this is the default.) Affects Versions: 4.2.0 Reporter: Nitin Mehta Fix For: 4.2.0 Projects - Templates owned by projects that are marked as "Public" are not listed in the "community" list for other users. 1. Create a project and add couple of accounts to this project. 2. As any user of this project , click on "Project View" and select this project. 3. Create a template which is marked as "Public". Template that was created in project - "project-new" with Public option. { "listtemplatesresponse" : { "count":1 ,"template" : [ {"id":"83d15d1c-f3c6-44ea-ad97-f58398f4451c","name":"temp-proj1","displaytext":"temp-proj1","ispublic":true,"created":"2013-06-03T12:55:20-0700","isready":true,"passwordenabled":false,"format":"VHD","isfeatured":false,"crossZones":false,"ostypeid":"11","ostypename":"CentOS 5.3 (32-bit)","zoneid":"b383a50f-e760-415d-8eaf-dd07ce75866c","zonename":"zone1","size":21474836480,"templatetype":"USER","hypervisor":"XenServer","domain":"ROOT","domainid":"1","isextractable":false,"checksum":"204e8440d7971a4c38536778fab13a41","projectid":"349c9a83-7857-4b59-89d4-fff8152bb466","project":"project-new","tags":[],"sshkeyenabled":false} ] } } Listing "community" templates from other users , does not include the template that was created for the project with "Public" flag ON. http://10.223.131.170:8080/client/api?command=listTemplates&response=json&sessionkey=dRCsGYhxPSuJTdZt7lkSuxALr3w%3D&listAll=true&page=1&pagesize=20&templatefilter=community&_=1370307472847 { "listtemplatesresponse" : { "count":1 ,"template" : [ {"id":"83d15d1c-f3c6-44ea-ad97-f58398f4451c","name":"temp-proj1","displaytext":"temp-proj1","ispublic":true,"created":"2013-06-03T12:55:20-0700","isready":true,"passwordenabled":false,"format":"VHD","isfeatured":false,"crossZones":false,"ostypeid":"11","ostypename":"CentOS 5.3 (32-bit)","zoneid":"b383a50f-e760-415d-8eaf-dd07ce75866c","zonename":"zone1","size":21474836480,"templatetype":"USER","hypervisor":"XenServer","domain":"ROOT","domainid":"1","isextractable":false,"checksum":"204e8440d7971a4c38536778fab13a41","projectid":"349c9a83-7857-4b59-89d4-fff8152bb466","project":"project-new","tags":[],"sshkeyenabled":false} ] } } -- 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