You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Christian d'Heureuse (JIRA)" <ji...@apache.org> on 2014/05/02 19:59:14 UTC

[jira] [Created] (SSHD-318) VirtualFileSystemFactory does not work under Windows

Christian d'Heureuse created SSHD-318:
-----------------------------------------

             Summary: VirtualFileSystemFactory does not work under Windows
                 Key: SSHD-318
                 URL: https://issues.apache.org/jira/browse/SSHD-318
             Project: MINA SSHD
          Issue Type: Bug
    Affects Versions: 0.11.0
         Environment: Windows
            Reporter: Christian d'Heureuse


NativeFileSystemView.getNormalizedView() uses multi-root logic when the path separator is not '/', which is the case under Windows. But this multi-root logic interferes with VirtualFileSystemFactory, where there is a separate virtual root for each user.

To solve the problem, VirtualFileSystemFactory.createFileSystemView() could  pass a '/' separator to the constructor of NativeFileSystemView:

{code}
return new NativeFileSystemView(session.getUsername(), roots, "/", '/', false);
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)