[ 
https://issues.apache.org/jira/browse/KYLIN-4357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17030476#comment-17030476
 ] 

ASF subversion and git services commented on KYLIN-4357:
--------------------------------------------------------

Commit c51b708000354a1b16650ddd730b6728cad75fd4 in kylin's branch 
refs/heads/master from Kang
[ https://gitbox.apache.org/repos/asf?p=kylin.git;h=c51b708 ]

KYLIN-4357: throw Exception when cannot find job (#1073)

* KYLIN-4357: throw Exception when cannot find job

* update UT

* KYLIN-4357: throw Exception when jobInstance is null


> NPE in drop/cancel unexist job
> ------------------------------
>
>                 Key: KYLIN-4357
>                 URL: https://issues.apache.org/jira/browse/KYLIN-4357
>             Project: Kylin
>          Issue Type: Bug
>            Reporter: ZhouKang
>            Assignee: ZhouKang
>            Priority: Major
>
> REST apiĀ 
>  jobs/\{uuid}/cancel
> jobs/\{uuid}/drop
> if uuid is not exist, NPE happened.
> {code:java}
> // code placeholder
> Caused by: java.lang.NullPointerException
>  at 
> org.apache.kylin.rest.util.AclEvaluate.getProjectByJob(AclEvaluate.java:51)
>  at 
> org.apache.kylin.rest.util.AclEvaluate.checkProjectOperationPermission(AclEvaluate.java:107)
>  at org.apache.kylin.rest.service.JobService.cancelJob(JobService.java:610)
>  at 
> org.apache.kylin.rest.controller.JobController.cancel(JobController.java:204)
>  ... 75 more\n
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to