[ https://issues.apache.org/jira/browse/HIVE-16497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15979733#comment-15979733 ]
Hive QA commented on HIVE-16497: -------------------------------- Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12864459/HIVE-16497.1.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:red}ERROR:{color} -1 due to 12 failed/errored test(s), 10622 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestAccumuloCliDriver.testCliDriver[accumulo_index] (batchId=225) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[vector_if_expr] (batchId=143) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[authorization_uri_add_partition] (batchId=87) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[authorization_uri_alterpart_loc] (batchId=87) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[authorization_uri_create_table1] (batchId=88) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[authorization_uri_create_table_ext] (batchId=88) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[authorization_uri_createdb] (batchId=88) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[authorization_uri_index] (batchId=88) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[authorization_uri_insert] (batchId=87) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[authorization_uri_insert_local] (batchId=88) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[authorization_uri_load_data] (batchId=87) org.apache.hadoop.hive.cli.TestSparkNegativeCliDriver.org.apache.hadoop.hive.cli.TestSparkNegativeCliDriver (batchId=236) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/4837/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/4837/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-4837/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 12 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12864459 - PreCommit-HIVE-Build > FileUtils. isActionPermittedForFileHierarchy, isOwnerOfFileHierarchy file > system operations should be impersonated > ------------------------------------------------------------------------------------------------------------------ > > Key: HIVE-16497 > URL: https://issues.apache.org/jira/browse/HIVE-16497 > Project: Hive > Issue Type: Bug > Components: Authorization > Reporter: Thejas M Nair > Assignee: Thejas M Nair > Fix For: 3.0.0 > > Attachments: HIVE-16497.1.patch > > > FileUtils.isActionPermittedForFileHierarchy checks if user has permissions > for given action. The checks are made by impersonating the user. > However, the listing of child dirs are done as the hiveserver2 user. If the > hive user doesn't have permissions on the filesystem, it gives incorrect > error that the user doesn't have permissions to perform the action. > Impersonating the end user for all file operations in that function is also > logically correct thing to do. -- This message was sent by Atlassian JIRA (v6.3.15#6346)