mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SSHD-294) Dubious SSH_FXP_REALPATH handling
Date Mon, 14 Apr 2014 11:39:29 GMT

     [ https://issues.apache.org/jira/browse/SSHD-294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Guillaume Nodet updated SSHD-294:

    Fix Version/s:     (was: 0.10.2)

> Dubious SSH_FXP_REALPATH handling
> ---------------------------------
>                 Key: SSHD-294
>                 URL: https://issues.apache.org/jira/browse/SSHD-294
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 0.10.0
>            Reporter: Kohsuke Kawaguchi
>            Assignee: Guillaume Nodet
>             Fix For: 0.11.0
> SSH_FXP_REALPATH is used to canonicalizing path on the server side, so clients often
send path names that do not exist. The procol (http://tools.ietf.org/html/draft-ietf-secsh-filexfer-02)
clearly states that it should respond with dummy attribute values.
> SftpSubsystem class, OTOH, attempts to return actual file attributes, which could fail
on non-existent paths (or if the path exists but is at the location the user doesn't have
access to.)
> Handler for SSH_FXP_REALPATH shouldn't attempt to get attributes, or if you do, it must
recover from errors in SshFile and report dummy values instead.  

This message was sent by Atlassian JIRA

View raw message