You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Nitin Mehta (JIRA)" <ji...@apache.org> on 2013/07/01 16:58:20 UTC

[jira] [Created] (CLOUDSTACK-3306) Projects - Templates owned by projects that are marked as "Public" are not listed in the "community" list for other users.

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