[
https://issues.apache.org/jira/browse/IO-769?focusedWorklogId=806463&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-806463
]
ASF GitHub Bot logged work on IO-769:
-------------------------------------
Author: ASF GitHub Bot
Created on: 06/Sep/22 16:12
Start Date: 06/Sep/22 16:12
Worklog Time Spent: 10m
Work Description: garydgregory commented on PR #377:
URL: https://github.com/apache/commons-io/pull/377#issuecomment-1238362100
Hi @tresf
Please rebase on git master to see what happens with the new test for
[IO-575](https://issues.apache.org/jira/browse/IO-575).
Issue Time Tracking
-------------------
Worklog Id: (was: 806463)
Time Spent: 1h (was: 50m)
> 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: 1h
> 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)