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

FileUtilsDeleteDirectoryLinuxTestCase fails on Mac

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • None
    • None
    • Utilities
    • None
    • MacOS Version 11.2.3 (Big Sur) on Java 11.0.9 Maven 3.6.3

      MacOS Version 10.14.6 (Mojave) on Java 15.0.2 Maven 3.6.1

    Description

      After cloning the repository using the command line and running the code on a MacBook Pro there is one test error, as shown below.

      -------------------------------------------------------------------------------
      Test set: org.apache.commons.io.FileUtilsDeleteDirectoryLinuxTestCase
      -------------------------------------------------------------------------------
      Tests run: 10, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.175 s <<< FAILURE! - in org.apache.commons.io.FileUtilsDeleteDirectoryLinuxTestCase
      org.apache.commons.io.FileUtilsDeleteDirectoryLinuxTestCase.testDeleteInvalidLinks  Time elapsed: 0.004 s  <<< ERROR!
      org.apache.commons.io.IOExceptionList: /var/folders/zz/szdyqxvs5lg94f9ffy016bsr0000gn/T/junit12436802239416119036/realParentDirC
      Caused by: java.io.IOException: Cannot delete file: /var/folders/zz/szdyqxvs5lg94f9ffy016bsr0000gn/T/junit12436802239416119036/realParentDirC/realChildDirD
      Caused by: java.nio.file.AccessDeniedException: /var/folders/zz/szdyqxvs5lg94f9ffy016bsr0000gn/T/junit12436802239416119036/realParentDirC/realChildDirD
      

      This error was also reproduced in an iMac. The pom.xml version is the 2.9.0-SNAPSHOT, which comes from the GitHub repository here: Apache Commons-io pom.xml The logs are attached below as a txt attachment.

       

       

      Attachments

        1. Text-Log.txt
          54 kB
          Brian Zou

        Activity

          People

            Unassigned Unassigned
            BrianZou Brian Zou
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 72h
                72h
                Remaining:
                Remaining Estimate - 72h
                72h
                Logged:
                Time Spent - Not Specified
                Not Specified