Details
-
Wish
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.2.0
-
None
-
Windows/Linux
Description
We use sshd for junit testing of sftp file transfers.
Scenario:
1.create filesystem:
├── mem0 │ └── mem0.txt ├── run -> mem0 └── run2 -> mem0
2. Start SSh server with given file system.
code snippet from out project:
_server = SshServer.setUpDefaultServer(); _server.setHost("localhost"); _server.setPort(PORT); _server.setKeyPairProvider(new SimpleGeneratorHostKeyProvider()); _server.setPasswordAuthenticator(new PasswordAuthenticator() { @Override public boolean authenticate(final String username, final String password, final ServerSession session) { return USERNAME.equals(username) && PASSWORD.equals(password); } }); _server.setSubsystemFactories(singletonList(new SftpSubsystemFactory())); _server.setFileSystemFactory(new VirtualFileSystemFactory(fileSystemPath)); _server.start();
3. Connect to server with sftp client.
Result:
run and run2 symlinks are presented as file symlinks instead of directory symlinks.
Expected result:
run and run2 are presented as directory symlinks.