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

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

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



##########
File path: 
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFileUtil.java
##########
@@ -706,15 +706,16 @@ public void testCreateLocalTempFile() throws IOException {
   public void testUnZip() throws IOException {
     // make sa simple zip
     final File simpleZip = new File(del, FILE);
-    OutputStream os = new FileOutputStream(simpleZip); 
-    ZipOutputStream tos = new ZipOutputStream(os);
+    OutputStream os = new FileOutputStream(simpleZip);
+    ZipArchiveOutputStream tos = new ZipArchiveOutputStream(os);

Review comment:
       good, thouth this is test code, it is also necessary to add this logic.




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

    Worklog Id:     (was: 739925)
    Time Spent: 4h 50m  (was: 4h 40m)

> 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: 4h 50m
>  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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to