damonb123 opened a new issue, #7350:
URL: https://github.com/apache/cloudstack/issues/7350

   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and main branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete 
the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   API
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main 
branch.
   -->
   
   ~~~
   4.17.1.0
   4.17.2.0
   ~~~
   
   ```java
   public boolean 
updateTemplateOrIsoPermissions(BaseUpdateTemplateOrIsoPermissionsCmd cmd) {
   
         <...>
   
           if (owner.getType() == Account.Type.PROJECT) {
               // Currently project owned templates cannot be shared outside 
project but is available to all users within project by default.
               throw new InvalidParameterValueException("Update template 
permissions is an invalid operation on template " + template.getName() +
                       ". Project owned templates cannot be shared outside 
template.");
           }
   
         <...>
   ```
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   Templates owned by a project account are not allowed to exectute 
updateTemplatePermissions API.
   This prevents projects from sharing templates between them selves that are 
in the same Domain as stated by the API docs.
   It seems to indicate that only templates created by a users in the "admin" 
or other non-project group are allowed to mark templates shared outside of the 
project structure.
   
   
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   Allowing users in the same domain to share templates would seem to be an 
expected behavior.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to