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

Yufei Gu edited comment on YARN-5554 at 8/31/16 8:12 PM:
---------------------------------------------------------

Thanks [~wilfreds] for working on this. The patch looks good to me generally. 
My one concern is that {{moveApplicationAcrossQueues}} doesn't check if the 
queue exists first, neither do its callers. It's OK since its callee like 
{{queueACLsManager.checkAccess}} did the NULL check of the target queue, but 
the LOG information seems vague. What about to do the NULL check in 
{{moveApplicationAcrossQueues}} and provide the explicitly information of 
"target queue does't exist" and remove the NULL check in its callee like 
function {{queueACLsManager.checkAccess}} added in this patch.


was (Author: yufeigu):
Thanks [~wilfreds] for working on this. The patch looks good to me generally. 
My one concern is that {{moveApplicationAcrossQueues}} doesn't check if the 
queue exists first, neither do its callers. I can see it's OK its callee like 
{{queueACLsManager.checkAccess}} did the NULL check of the target queue but the 
LOG information seems vague. What about to do the NULL check in 
{{moveApplicationAcrossQueues}} and provide the explicitly information of 
"target queue does't exist" and remove the NULL check in its callee like 
function {{queueACLsManager.checkAccess}} added in this patch.

> MoveApplicationAcrossQueues does not check user permission on the target queue
> ------------------------------------------------------------------------------
>
>                 Key: YARN-5554
>                 URL: https://issues.apache.org/jira/browse/YARN-5554
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: resourcemanager
>    Affects Versions: 2.7.2
>            Reporter: Haibo Chen
>            Assignee: Wilfred Spiegelenburg
>         Attachments: YARN-5554.2.patch, YARN-5554.3.patch
>
>
> moveApplicationAcrossQueues operation currently does not check user 
> permission on the target queue. This incorrectly allows one user to move 
> his/her own applications to a queue that the user has no access to



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to