[ https://issues.apache.org/jira/browse/CLOUDSTACK-7309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14094773#comment-14094773 ]
ASF subversion and git services commented on CLOUDSTACK-7309: ------------------------------------------------------------- Commit cb9319d3d8a1269af786986d49df6c41c69833c1 in cloudstack's branch refs/heads/master from Luis Henrique Okama [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=cb9319d ] bugfix CLOUDSTACK-7309 using findProjectByProjectAccountIdIncludingRemoved Signed-off-by: Rohit Yadav <rohit.ya...@shapeblue.com> > NPE when project was already deleted > ------------------------------------ > > Key: CLOUDSTACK-7309 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7309 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Usage > Affects Versions: 4.3.0, 4.4.0, 4.3.1 > Reporter: Daniel Vega Simoes > Fix For: 4.4.0, 4.4.1 > > > When listing usage records for running VMs and project to which this VM > belonged was removed, a Null Pointer Exception happens at the time of > building an usage response. Steps to reproduce the error: > 1 - create a new project > 2 - create a new VM under this project > 3 - remove the project (which also removes the VM) > 4 - collect usage data (usually happens overnight automatically) > 5 - list usage records by issuing following command on Cloudmonkey (make sure > the date range comprises the project removal event) > list usagerecords startdate=2014-08-05 enddate=2014-08-08 type=1 > Bug happens at the ApiResponseHelper.java file. Whenever account type is > ACCOUNT_TYPE_PROJECT, it tries to retrieve the Project object, which returns > null when project was removed. -- This message was sent by Atlassian JIRA (v6.2#6252)