You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Jan Høydahl (Jira)" <ji...@apache.org> on 2023/09/15 06:47:00 UTC
[jira] [Commented] (IO-800) Fix back-incompatible change for PathUtils.deleteDirectory(): throw NoSuchFileException instead of IllegalArgumentException
[ https://issues.apache.org/jira/browse/IO-800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17765470#comment-17765470 ]
Jan Høydahl commented on IO-800:
--------------------------------
Hi, I was expecting a 2.13.1 or 2.14 release to fix this unintended API break. In Solr we are delaying upgrade og commons-io until this is fixed. Any news on a release?
> Fix back-incompatible change for PathUtils.deleteDirectory(): throw NoSuchFileException instead of IllegalArgumentException
> ---------------------------------------------------------------------------------------------------------------------------
>
> 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
> Fix For: 2.14.0
>
>
> 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)