You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2023/06/08 18:08:00 UTC

[jira] [Updated] (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:all-tabpanel ]

Gary D. Gregory updated IO-800:
-------------------------------
    Summary: Fix back-incompatible change for PathUtils.deleteDirectory(): throw NoSuchFileException instead of IllegalArgumentException  (was: Possible bug in PathUtils.deleteDirectory)

> 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.13.1
>
>
> 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)