Spaceman1984 commented on a change in pull request #3318: Fixed: User not 
allowed to tag project created by him
URL: https://github.com/apache/cloudstack/pull/3318#discussion_r282543682
 
 

 ##########
 File path: server/src/com/cloud/tags/TaggedResourceManagerImpl.java
 ##########
 @@ -215,6 +215,10 @@ public long getResourceId(String resourceId, 
ResourceObjectType resourceType) {
             }
         }
 
+        if (resourceType == ResourceObjectType.Project) {
+            accountId = ((ProjectVO)entity).getProjectAccountId();
 
 Review comment:
   Tested using cloudmonkey 
   
   (local) mycloudmonkey> create tags resourcetype=project 
resourceids=5c3eced9-1b05-494a-8f65-72565f491d27 tags[0].key="can't stop" 
tags[0].value="time is money"
   
   accountid = d16af203-c08d-4157-bf5a-94be8f302390
   cmd = org.apache.cloudstack.api.command.user.tag.CreateTagsCmd
   created = 2019-05-09T15:30:19+0000
   jobid = de83c6b2-a9e7-4b3f-b8b5-49c55cc81377
   jobprocstatus = 0
   jobresult:
   success = True
   jobresultcode = 0
   jobresulttype = object
   jobstatus = 1
   userid = 6d1bcfeb-0640-487e-978a-f4cf348accb9
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to