[ 
https://issues.apache.org/jira/browse/NIFI-15387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Stieglitz updated NIFI-15387:
------------------------------------
    Description: 
The TestFetchFile class is currently disabled for running on Windows all its 
tests. 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 one directory to another. On  Linux this works but not on Windows due 
the reported bug.

The purpose of this ticket is to re-enable all the other tests in TestFetchFile 
on Windows and only disable the aforementioned tests. 

  was:
The TestFetchFile class is currently disabled for running on Windows all its 
tests. 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 one directory to another. On  Linux this works but not on Windows due 
the reported bug.

The purpose of this ticket is to re-enable all the other tests in TestFetchFile 
on Windows and only disable the aforementioned tests  


> Re-enable TestFetchFile to run 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
>            Priority: Minor
>
> The TestFetchFile class is currently disabled for running on Windows all its 
> tests. 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 one directory to another. On  Linux this works but not on 
> Windows due the reported bug.
> 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)

Reply via email to