{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/22021","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/22021/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/22021/comments","events_url":"https://api.github.com/repos/apache/spark/issues/22021/events","html_url":"https://github.com/apache/spark/pull/22021","id":348219549,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2NjE5MDIw","number":22021,"title":"[SPARK-24948][SHS] Delegate check access permissions to the file system","user":{"login":"mgaido91","id":8821783,"node_id":"MDQ6VXNlcjg4MjE3ODM=","avatar_url":"https://avatars1.githubusercontent.com/u/8821783?v=4","gravatar_id":"","url":"https://api.github.com/users/mgaido91","html_url":"https://github.com/mgaido91","followers_url":"https://api.github.com/users/mgaido91/followers","following_url":"https://api.github.com/users/mgaido91/following{/other_user}","gists_url":"https://api.github.com/users/mgaido91/gists{/gist_id}","starred_url":"https://api.github.com/users/mgaido91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgaido91/subscriptions","organizations_url":"https://api.github.com/users/mgaido91/orgs","repos_url":"https://api.github.com/users/mgaido91/repos","events_url":"https://api.github.com/users/mgaido91/events{/privacy}","received_events_url":"https://api.github.com/users/mgaido91/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-07T08:30:49Z","updated_at":"2018-08-07T08:33:38Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/22021","html_url":"https://github.com/apache/spark/pull/22021","diff_url":"https://github.com/apache/spark/pull/22021.diff","patch_url":"https://github.com/apache/spark/pull/22021.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nIn `SparkHadoopUtil. checkAccessPermission`,  we consider only basic permissions in order to check whether a user can access a file or not. This is not a complete check, as it ignores ACLs and other policies a file system may apply in its internal. So this can result in returning wrongly that a user cannot access a file (despite he actually can).\r\n\r\nThe PR proposes to delegate to the filesystem the check whether a file is accessible or not, in order to return the right result. A caching layer is added for performance reasons.\r\n\r\n## How was this patch tested?\r\n\r\nadded UT"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/410978704","html_url":"https://github.com/apache/spark/pull/22021#issuecomment-410978704","issue_url":"https://api.github.com/repos/apache/spark/issues/22021","id":410978704,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDk3ODcwNA==","user":{"login":"SparkQA","id":8108735,"node_id":"MDQ6VXNlcjgxMDg3MzU=","avatar_url":"https://avatars1.githubusercontent.com/u/8108735?v=4","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2018-08-07T08:33:38Z","updated_at":"2018-08-07T08:33:38Z","author_association":"NONE","body":"**[Test build #94357 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/94357/testReport)** for PR 22021 at commit [`fb68910`](https://github.com/apache/spark/commit/fb68910f82b1a2729364573a1c926b5b7b5c7c12)."}}
{"actor":{"display_login":"SparkQA"}}