[
https://issues.apache.org/jira/browse/SSHD-194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Guillaume Nodet resolved SSHD-194.
----------------------------------
Resolution: Won't Fix
Assignee: Guillaume Nodet
I'll close this issue. The way SSH_FXP_REALPATH works now is correct, at least
for sftp versions < 6.
The 6 version supports additional options that should be supported.
One of them is to always stat the returned file and fail if it does not exist,
but that's not the default.
> SftpSubsystem resolveFile is missing necessary information
> ----------------------------------------------------------
>
> Key: SSHD-194
> URL: https://issues.apache.org/jira/browse/SSHD-194
> Project: MINA SSHD
> Issue Type: Bug
> Affects Versions: 0.8.0
> Environment: any
> Reporter: Arno Mittelbach
> Assignee: Guillaume Nodet
>
> To open files, SftpSubsystem uses the resolveFile method. This is done for
> SFTP Commands SSH_FXP_OPEN as well as for SSH_FXP_REALPATH. The problem is,
> that for OPEN a file handle pointing to a probably unexisting file has to be
> returned in order to be able to write to that file. For SSH_FXP_REALPATH,
> however, I should throw an Exception in case a nonexisting file is specified.
> As this information is not passed on, it is impossible to properly answer
> such requests in FileSystemView.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira