You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Daniel Stieglitz (Jira)" <ji...@apache.org> on 2025/12/24 14:15:00 UTC
[jira] [Created] (NIFI-15387) Enable TestFetchFile on Windows
Daniel Stieglitz created NIFI-15387:
---------------------------------------
Summary: Enable TestFetchFile on Windows
Key: NIFI-15387
URL: https://issues.apache.org/jira/browse/NIFI-15387
Project: Apache NiFi
Issue Type: Improvement
Reporter: Daniel Stieglitz
Assignee: Daniel Stieglitz
The TestFetchFile currently is disabled for running on Windows. This seems unnecessary as only the following two tests fail on Windows:
# testMoveOnCompleteWithTargetExistsButNotWritable
# testMoveOnCompleteWithParentOfTargetDirNotAccessible
The reason they fail is related to the following Java [bug|https://bugs.java.com/bugdatabase/view_bug?bug_id=6728842] where it states
{quote}
File's setReadOnly method [Also setWritable(false)] does not make a directory read-only on Windows. Instead, it sets the DOS readonly attribute that prevents the directory from being deleted.
{quote}
The aforementioned tests are trying to make the directory (or its parent) where the file is to be copied to read only thereby preventing the ability to copy a file from on directory to another. On Linux this works but not on Windows due the reported bug it does not.
The purpose of this ticket is to re-enable all the other tests in TestFetchFile on Windows and only disable the aforementioned tests
--
This message was sent by Atlassian Jira
(v8.20.10#820010)