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

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

                Author: ASF GitHub Bot
            Created on: 27/Feb/22 09:18
            Start Date: 27/Feb/22 09:18
    Worklog Time Spent: 10m 
      Work Description: zhongjingxiong opened a new pull request #4036:
URL: https://github.com/apache/hadoop/pull/4036


   …missions
   
   <!--
     Thanks for sending a pull request!
       1. If this is your first time, please read our contributor guidelines: 
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
       2. Make sure your PR title starts with JIRA issue id, e.g., 
'HADOOP-17799. Your PR title ...'.
   -->
   
   ### Description of PR
   When we use the unzip method of Hadoop common to decompress, the UNIX 
permission cannot be reserved, so we use the ziparchiveentry of Apache common 
to preserve the permission information. When the file has UNIX permission, the 
unzip decompression method will preserve the permission first, and then set the 
original permission information to the new file.
   
   ### How was this patch tested?
   Unit tests were conducted.
   
   ### For code changes:
   
   - [ ] Does the title or this PR starts with the corresponding JIRA issue id 
(e.g. 'HADOOP-17799. Your PR title ...')?
   - [ ] Object storage: have the integration tests been executed and the 
endpoint declared according to the connector-specific documentation?
   - [ ] If adding new dependencies to the code, are these dependencies 
licensed in a way that is compatible for inclusion under [ASF 
2.0](http://www.apache.org/legal/resolved.html#category-a)?
   - [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, 
`NOTICE-binary` files?
   
   


-- 
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-unsubscr...@hadoop.apache.org

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


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

            Worklog Id:     (was: 733613)
    Remaining Estimate: 0h
            Time Spent: 10m

> 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
>          Time Spent: 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-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to