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 C809F10C8C for ; Fri, 12 Jul 2013 19:15:48 +0000 (UTC) Received: (qmail 17946 invoked by uid 500); 12 Jul 2013 19:15:48 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 17934 invoked by uid 500); 12 Jul 2013 19:15:48 -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 17925 invoked by uid 500); 12 Jul 2013 19:15:48 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 17922 invoked by uid 99); 12 Jul 2013 19:15:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jul 2013 19:15:48 +0000 Date: Fri, 12 Jul 2013 19:15:48 +0000 (UTC) From: "Sangeetha Hariharan (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (CLOUDSTACK-2495) Object_Store_Refactor - Templates - Templates that are marked as Public are not visible to other users. 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-2495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sangeetha Hariharan closed CLOUDSTACK-2495. ------------------------------------------- Tested with latest build from 4.2: Templates that are marked as "public' ( not "featured") , are listed in the "community" list. Templates that are marked as "public' and "featured" , will be listed in the "featured" list. These templates will not show up in the "community" list. > Object_Store_Refactor - Templates - Templates that are marked as Public are not visible to other users. > ------------------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-2495 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2495 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: Management Server > Affects Versions: 4.2.0 > Environment: Build from object_store > Reporter: Sangeetha Hariharan > Assignee: Min Chen > Fix For: 4.2.0 > > > Object_Store_Refactor - Templates - Templates that are marked as Public are not visible to other users. > Steps to reproduce the problem: > Scenario 1 : > As admin , create a template isPublic() set to true . > As regular user , try list Templates with filter set as "community". > We do not see the template being listed. > http://10.223.57.194:8080/client/api?command=listTemplates&response=json&sessionkey=ZjI8cLyxkL5UTHNkjTLIBp0pNy8%3D&listAll=true&page=1&pagesize=20&templatefilter=community&_=1368574031950 > { "listtemplatesresponse" : { } } > mysql> select name,public,featured,extractable from vm_template where id=206; > +---------+--------+----------+-------------+ > | name | public | featured | extractable | > +---------+--------+----------+-------------+ > | test123 | 1 | 0 | 0 | > +---------+--------+----------+-------------+ > 1 row in set (0.00 sec) > Scenario 2 : > As admin , create a template isPublic() set to true and isFeatured() to true. > As regular user , try list Templates with filter set as "featured". > We do not see the template being listed. -- 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