[ https://issues.apache.org/jira/browse/CLOUDSTACK-8483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14572109#comment-14572109 ]
ASF GitHub Bot commented on CLOUDSTACK-8483: -------------------------------------------- Github user karuturi commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/334#discussion_r31692655 --- Diff: api/src/org/apache/cloudstack/api/command/user/template/CreateTemplateCmd.java --- @@ -215,33 +221,39 @@ public long getEntityOwnerId() { if (volumeId != null) { Volume volume = _entityMgr.findById(Volume.class, volumeId); if (volume != null) { - accountId = volume.getAccountId(); --- End diff -- accountId is unused. Can we initialize it with CallContext.current().getCallingAccount() and use it (which saves some function calls)? > Private template not visible in project > --------------------------------------- > > Key: CLOUDSTACK-8483 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8483 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Projects > Affects Versions: 4.5.0 > Reporter: Sudhansu Sahu > Assignee: Sudhansu Sahu > > Private template get created outside the project context. These templates are > not visible in project view. > STEPS TO REPRODUCE: > 1 Select a project view, and go into volumes view > 2 Create a template from a Volume and wait until the process is complete > 3 The template cannot be found in the project > 4 Navigate back to the "Default view" The template can be found in the > templates screen in this view -- This message was sent by Atlassian JIRA (v6.3.4#6332)