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

ASF GitHub Bot logged work on IO-769:
-------------------------------------

                Author: ASF GitHub Bot
            Created on: 03/Sep/22 13:56
            Start Date: 03/Sep/22 13:56
    Worklog Time Spent: 10m 
      Work Description: garydgregory commented on PR #377:
URL: https://github.com/apache/commons-io/pull/377#issuecomment-1236125211

   Notice that in the (old) Jira tickets above, two are about attributes not 
being copied, which we now do but this PR proposes to undo. So catch-22. Ideas?




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

    Worklog Id:     (was: 805954)
    Time Spent: 0.5h  (was: 20m)

> FileUtils.copyFileToDirectory can lead to not accessible file when preserving 
> the file date
> -------------------------------------------------------------------------------------------
>
>                 Key: IO-769
>                 URL: https://issues.apache.org/jira/browse/IO-769
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.11.0
>            Reporter: Jérémy Carnus
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Hi,
> The current implementation for copyFileToDirectory by default preserve the 
> file. 
> There 2 issues regarding this:
>  * the javadoc mentions this is done by File.setLastModified by in fact this 
> is done by the COPY_ATTRIBUTES options
>  * Under Windows, the COPY_ATTRIBUTES also copies the security attributes 
> (SID and permissions) and can lead to a file not beeing readable after copy 
> (if for example, you copie from a mount under docker or a shared folder)
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to