[
https://issues.apache.org/jira/browse/IO-769?focusedWorklogId=806471&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-806471
]
ASF GitHub Bot logged work on IO-769:
-------------------------------------
Author: ASF GitHub Bot
Created on: 06/Sep/22 16:27
Start Date: 06/Sep/22 16:27
Worklog Time Spent: 10m
Work Description: tresf commented on PR #377:
URL: https://github.com/apache/commons-io/pull/377#issuecomment-1238382739
> 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).
Done, I think you need to kick-start the workflow now. :)
Issue Time Tracking
-------------------
Worklog Id: (was: 806471)
Time Spent: 1h 10m (was: 1h)
> 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 10m
> 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)