Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-561

[ftp][tests]Cannot delete directory on Windows FTPServer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.1
    • None
    • Using CoreFTP on Windows 7 (x64, german). Maven 3.2.5, Java 7u76

    Description

      While running the test suite with external FTP Server (using the Coreftpd.com product) the test suite has 3 errors, all of them while deleting directories in the write-data hierachy.

      I am not sure if this is caused by parallel concurrent logins, by not using CWD properly, if it is a netlib bug or a test problem. I asume it is related to the directory beeing locked (by usage or content)

      Tests run: 77, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 10.251 sec <<< FAILURE! - in org.apache.commons.vfs2.provider.ftp.test.FtpProviderTestCase
      testDelete(org.apache.commons.vfs2.test.ProviderWriteTests)  Time elapsed: 0.209 sec  <<< ERROR!
      org.apache.commons.vfs2.FileSystemException: Could not delete "ftp://test:***@localhost/test-classes/test-data/write-tests/dir1".
              at org.apache.commons.vfs2.provider.AbstractFileObject.deleteSelf(AbstractFileObject.java:553)
              at org.apache.commons.vfs2.provider.AbstractFileObject.delete(AbstractFileObject.java:496)
              at org.apache.commons.vfs2.provider.AbstractFileObject.deleteAll(AbstractFileObject.java:516)
              at org.apache.commons.vfs2.test.ProviderWriteTests.testDelete(ProviderWriteTests.java:252)
      ...
      Caused by: org.apache.commons.vfs2.FileSystemException: Could not delete FTP file "ftp://test:***@localhost/test-classes/test-data/write-tests/dir1".
              at org.apache.commons.vfs2.provider.ftp.FtpFileObject.doDelete(FtpFileObject.java:493)
              at org.apache.commons.vfs2.provider.AbstractFileObject.deleteSelf(AbstractFileObject.java:542)
              ... 27 more

      Attachments

        Activity

          People

            Unassigned Unassigned
            b.eckenfels Bernd Eckenfels
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: