Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-800

Fix back-incompatible change for PathUtils.deleteDirectory(): throw NoSuchFileException instead of IllegalArgumentException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.12.0, 2.13.0
    • 2.14.0
    • Utilities
    • None

    Description

      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, 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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              janhoy Jan Høydahl
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: