You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/03/01 03:57:00 UTC

[jira] [Work logged] (HADOOP-18145) Fileutil's unzip method causes unzipped files to lose their original permissions

     [ https://issues.apache.org/jira/browse/HADOOP-18145?focusedWorklogId=734330&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-734330 ]

ASF GitHub Bot logged work on HADOOP-18145:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 01/Mar/22 03:56
            Start Date: 01/Mar/22 03:56
    Worklog Time Spent: 10m 
      Work Description: zhongjingxiong commented on a change in pull request #4036:
URL: https://github.com/apache/hadoop/pull/4036#discussion_r816430648



##########
File path: hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileUtil.java
##########
@@ -36,8 +36,11 @@
 import java.nio.charset.CharsetEncoder;
 import java.nio.charset.StandardCharsets;
 import java.nio.file.AccessDeniedException;
+import java.nio.file.attribute.PosixFilePermission;
 import java.nio.file.FileSystems;
 import java.nio.file.Files;
+
+import java.util.*;

Review comment:
       Thank you for your review. It is true that there was a problem when IDE was introduced.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 734330)
    Time Spent: 1h 10m  (was: 1h)

> Fileutil's unzip method causes unzipped files to lose their original permissions
> --------------------------------------------------------------------------------
>
>                 Key: HADOOP-18145
>                 URL: https://issues.apache.org/jira/browse/HADOOP-18145
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: common
>    Affects Versions: 2.7.2
>            Reporter: jingxiong zhong
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> When Spark decompresses the zip file, if the original file has the executable permission, but the unzip method of FileUtil is invoked, the decompressed file loses the executable permission, we should save the original permission



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org