[
https://issues.apache.org/jira/browse/IO-800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17730545#comment-17730545
]
Gary D. Gregory commented on IO-800:
------------------------------------
In some places, we also cause NIO's {{NoSuchFileException}} to be thrown. The
JRE also uses IO's {{FileNotFoundException}}.
I wonder if we should reuse one of these for directories instead of
{{IllegalArgumentException}} or create a {{NoSuchDirectoryException}} for NIO
calls and/or {{DirectoryNotFoundException}} for IO calls...
> Possible bug in PathUtils.deleteDirectory
> -----------------------------------------
>
> Key: IO-800
> URL: https://issues.apache.org/jira/browse/IO-800
> Project: Commons IO
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 2.12.0, 2.13.0
> Reporter: Jan Høydahl
> Priority: Major
>
> We are trying to upgrade Apache Solr from commons-io 2.11 to 2.13 in
> [https://github.com/apache/solr/pull/1653.] As you will see in the PR
> comments and also in the failed [test
> logs|https://github.com/apache/solr/actions/runs/5209945412/jobs/9400431409?pr=1653],
> a call to PathUtils.deleteDirectory on a non-existing directory, behaves
> differently between those versions.
> This looks like a regression related to refactoring of that method.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)