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

ZhouKang updated KYLIN-4357:
----------------------------
    Description: 
REST api 
 jobs/\{uuid}/cancel

jobs/\{uuid}/drop

if uuid is not exist, NPE happened.
{code:java}
// code placeholder
Caused by: java.lang.NullPointerException\n\tat 
org.apache.kylin.rest.util.AclEvaluate.getProjectByJob(AclEvaluate.java:51)\n\tat
 
org.apache.kylin.rest.util.AclEvaluate.checkProjectOperationPermission(AclEvaluate.java:107)\n\tat
 org.apache.kylin.rest.service.JobService.cancelJob(JobService.java:610)\n\tat 
org.apache.kylin.rest.controller.JobController.cancel(JobController.java:204)\n\t...
 75 more\n
{code}

  was:
REST api 
jobs/\{uuid}/cancel

jobs/\{uuid}/drop

if uuid is not exist, NPE happened.


> 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
>            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\n\tat 
> org.apache.kylin.rest.util.AclEvaluate.getProjectByJob(AclEvaluate.java:51)\n\tat
>  
> org.apache.kylin.rest.util.AclEvaluate.checkProjectOperationPermission(AclEvaluate.java:107)\n\tat
>  
> org.apache.kylin.rest.service.JobService.cancelJob(JobService.java:610)\n\tat 
> org.apache.kylin.rest.controller.JobController.cancel(JobController.java:204)\n\t...
>  75 more\n
> {code}



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

Reply via email to