cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanjay Tripathi (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (CLOUDSTACK-3360) user can not Delete his own ISO in case of project
Date Fri, 05 Jul 2013 07:45:52 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-3360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sanjay Tripathi reassigned CLOUDSTACK-3360:
-------------------------------------------

    Assignee: Sanjay Tripathi
    
> user can not Delete his own ISO in case of project 
> ---------------------------------------------------
>
>                 Key: CLOUDSTACK-3360
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3360
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Projects
>    Affects Versions: 4.2.0
>         Environment: build:
> CloudPlatform-4.2-144-rhel6.3
>            Reporter: shweta agarwal
>            Assignee: Sanjay Tripathi
>             Fix For: 4.2.0
>
>
> Repro steps:
> 1. Create a domain and some accounts /user in that domain
> 2. Create a project in that domain
> 3. Create a private/ public ISO in the project
> 4. Delete the self created ISO
> Bug: gets message in case of public iso
> Domain Admin and regular users can modify only their own Public templates
> MS snippet:
> 013-07-04 17:20:18,820 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-21:job-26)
Executing org.apache.cloudstack.api.command.user.iso.DeleteIsoCmd for job-26
> 2013-07-04 17:20:18,866 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-21:job-26)
Unexpected exception while executing org.apache.cloudstack.api.command.user.iso.DeleteIsoCmd
> com.cloud.exception.PermissionDeniedException: Domain Admin and regular users can modify
only their own Public templates
>         at com.cloud.acl.DomainChecker.checkAccess(DomainChecker.java:113)
>         at com.cloud.user.AccountManagerImpl.checkAccess(AccountManagerImpl.java:403)
>         at com.cloud.template.TemplateManagerImpl.deleteIso(TemplateManagerImpl.java:1478)
>         at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at org.apache.cloudstack.api.command.user.iso.DeleteIsoCmd.execute(DeleteIsoCmd.java:110)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
>         at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:679)
> 2013-07-04 17:20:18,868 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-21:job-26)
Complete async job-26, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text:
Domain Admin and regular users can modify only their own Public templates
> 2013-07-04 17:20:20,607 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-323:null)
Ping from 1
> 2013-07-04 17:20:22,077 DEBUG [cloud.api.ApiServlet] (catalina-exec-20:null) ===START===
 10.146.0.12 -- GET  command=queryAsyncJobResult&jobId=49e17cf5-d860-4b58-8c86-1867be1b22f4&response=json&sessionkey=8rczMjm4sfljFOEi6dL2xT631sc%3D&projectid=a548b266-18e5-4f36
> Bug : gets message in case of private iso :Unable to delete iso . Permission denied.
> 2013-07-04 17:23:17,383 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-23:job-28)
Unexpected exception while executing org.apache.cloudstack.api.command.user.iso.DeleteIsoCmd
> com.cloud.exception.PermissionDeniedException: Unable to delete iso . Permission denied.
>         at com.cloud.template.TemplateAdapterBase.accountAndUserValidation(TemplateAdapterBase.java:302)
>         at com.cloud.template.TemplateAdapterBase.prepareDelete(TemplateAdapterBase.java:372)
>         at com.cloud.template.HypervisorTemplateAdapter.prepareDelete(HypervisorTemplateAdapter.java:419)
>         at com.cloud.template.TemplateManagerImpl.deleteIso(TemplateManagerImpl.java:1494)
>         at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at org.apache.cloudstack.api.command.user.iso.DeleteIsoCmd.execute(DeleteIsoCmd.java:110)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
>         at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:679)
> 2013-07-04 17:23:17,385 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-23:job-28)
Complete async job-28, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text:
Unable to delete iso . Permission denied.
> 2013-07-04 17:23:18,918 DEBUG [cloud.server.StatsCollector] (StatsCollector-2:null) VmStatsCollector
is running...
> 2013-07-04 17:23:18,966 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-330:null)
Seq 2-250282574: Executing request
> 2013-07-04 17:23:19,219 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-330:null)
Vm cpu utilization 0.0037500000000000003
> 2013-07-04 17:23:19,308 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-330:null)
Seq 2-250282574: Response Received:
>                                    

--
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

Mime
View raw message