[
https://issues.apache.org/jira/browse/SSHD-1267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17545046#comment-17545046
]
Lyor Goldstein edited comment on SSHD-1267 at 6/1/22 5:21 PM:
--------------------------------------------------------------
Like you said- there is no {{/home}} in Windows. All
{{VirtualFileSystemFactory}} does is provide a +virtual+ root. I.e., if the
real path (in Windows) is {{C:/a/b/c/d/e}} and you set the virtual root at
{{C:/a/b/c}} then SFTP client will see {{/d}} and {{/d/e}}. What you want is a
+new feature+ - aliasing - you want to call the root {{/home/something}} and
map it to {{C:/a/b/c}} so that SFTP client sees {{/home/something/d}}. This
feature is not available, though it can be implemented based on ideas from the
{{VirtualFileSystemFactory}} and the {{RootedPath}} as well as cooperation from
the {{SftpFileSystemAccessor}}. I have always thought about it, but there isn't
much call for it from our users, and because we have so few R&D resources we
need for be very careful ("choosy...") with what we spend them on...
You are more than welcome to attempt this and publish a PR, thus becoming a
contributor - we always welcome them.
was (Author: lgoldstein):
Like you said- there is no {{/home}} in Windows. All
{{VirtualFileSystemFactory}} does is provide a +virtual+ root. I.e., if the
real path (in Windows) is {{C:/a/b/c/d/e}} and you set the virtual root at
{{C:/a/b/c}} then SFTP client will see {{/d}} and {{/d/e}}. What you want is a
+new feature+ - aliasing - you want to call the root {{/home/something}} and
map it to {{C:/a/b/c}} so that SFTP client sees {{/home/something/d}}. This
feature is not available, though it can be implemented based on ideas from the
{{VirtualFileSystemFactory}} and the {{RootedPath}} as well as cooperation from
the {{SftpFileSystemAccessor}}. I have always thought about it, but there isn't
much call for it from our users, and because we have so few R&D resources we
need for be very careful ("choosy...") with what we spend them on...
> Apache Mina SFTP 2.8.0 Upgrade
> ------------------------------
>
> Key: SSHD-1267
> URL: https://issues.apache.org/jira/browse/SSHD-1267
> Project: MINA SSHD
> Issue Type: Question
> Affects Versions: 0.11.0, 0.14.0, 2.8.0
> Reporter: Nadezhda Balkandzhiyska
> Priority: Major
>
> I am trying to upgrade 0.14.0 sshd-core and 0.11.0 sshd-sftp to 2.8.0 version.
> Unfortunately I found that there are a lot of implementation changes, but I
> did not find a migration guide before version 2.0.0 (It would be great if
> someone could provide me with a migration guide from 0.11.0/0.14.0 to 2.0.0)
> The main problem I have is the lack of FileSystemView and SshFile since the
> previous version has file system independence and we use the ability for the
> root sub-directory of both Windows and Unix to be '/'.
> Now, when I try to run sftp server on Windows the Windows file system always
> redirects me to 'C:\'.
> I would be extremely grateful for some ideas on how I can migrate to the new
> version given the file system problem.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]