anowicki-egnyte opened a new issue, #80:
URL: https://github.com/apache/mina-ftpserver/issues/80

   The NLST FTP command, when issued with the name of a non-existent file as an 
argument, returns that name instead of an empty list. Compare this behavior to 
that of the LIST command, which correctly returns an empty list in such a case.
   
   A test case reproducing the bug (using the FTP client from the `commons-net` 
package):
   ```java
       @Test
       void shouldReturnEmptyListingOfNonExistingFiles() {
           ftpClient.connect(connectionDetails.ip, connectionDetails.port);
           t(ftpClient.login(TestUtils.SUBDOMAIN0_PRIMARY_ADMIN_USER_NAME, 
USER1_PASSWORD));
           ftpClient.enterLocalPassiveMode();
   
           // listing of non-existing directory
           assertThat(ftpClient.listFiles(UUID.randomUUID().toString()), 
is(emptyArray()));
           assertThat(ftpClient.listNames(UUID.randomUUID().toString()), 
is(emptyArray()));
       }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to