[
https://issues.apache.org/jira/browse/IO-769?focusedWorklogId=839274&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-839274
]
ASF GitHub Bot logged work on IO-769:
-------------------------------------
Author: ASF GitHub Bot
Created on: 15/Jan/23 15:03
Start Date: 15/Jan/23 15:03
Worklog Time Spent: 10m
Work Description: menscikov commented on PR #377:
URL: https://github.com/apache/commons-io/pull/377#issuecomment-1383174106
Hello, `FileUtils.copyInputStreamToFile()` has the same issue starting from
**2.9** version.
Please fix it also.
Issue Time Tracking
-------------------
Worklog Id: (was: 839274)
Time Spent: 1h 20m (was: 1h 10m)
> 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 20m
> 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)