You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Tests {@link FtpFileObject#exists()} for root-level FTP folders where {@code getParent()} returns {@code null}.
33
36
* <p>
34
-
* Regression test for the bug in {@link FtpFileObject} where {@code setFTPFile()} blindly assumed that root-level
35
-
* directories exist ({@code setType(DIRECTORY_TYPE)}) without verifying on the server. This caused {@code exists()} to
36
-
* return {@code true} even after the FTP connection was lost, while non-root folders correctly reported the connection
37
-
* failure via {@link FileSystemException}.
37
+
* Regression test for the bug in {@link FtpFileObject} where {@code setFTPFile()} blindly assumed that root-level directories exist
38
+
* ({@code setType(DIRECTORY_TYPE)}) without verifying on the server. This caused {@code exists()} to return {@code true} even after the FTP connection was
39
+
* lost, while non-root folders correctly reported the connection failure via {@link FileSystemException}.
* Tests that {@code exists()} returns {@code true} when the server is running, and does not silently return
63
-
* {@code true} after the FTP connection is lost.
64
+
* Tests that {@code exists()} returns {@code true} when the server is running, and does not silently return {@code true} after the FTP connection is lost.
64
65
* <p>
65
-
* With {@code userDirIsRoot=true}, the root's {@code getParent()} returns {@code null}, which triggers the
66
-
* {@code verifyRootDirectory()} code path in {@code setFTPFile()}.
66
+
* With {@code userDirIsRoot=true}, the root's {@code getParent()} returns {@code null}, which triggers the {@code verifyRootDirectory()} code path in
67
+
* {@code setFTPFile()}.
67
68
* </p>
68
69
* <p>
69
-
* Before the fix, {@code setFTPFile()} set {@code type=DIRECTORY} when {@code getParent()} returned {@code null},
70
-
* without contacting the server. After the fix, {@code setFTPFile()} uses CWD to verify, which fails on a dead
71
-
* connection.
70
+
* Before the fix, {@code setFTPFile()} set {@code type=DIRECTORY} when {@code getParent()} returned {@code null}, without contacting the server. After the
71
+
* fix, {@code setFTPFile()} uses CWD to verify, which fails on a dead connection.
72
72
* </p>
73
73
*/
74
74
@Test
@@ -77,18 +77,13 @@ public void testRootExistsFailsWhenConnectionDropped() throws Exception {
0 commit comments