You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Goldstein Lyor (JIRA)" <ji...@apache.org> on 2015/03/01 09:42:04 UTC

[jira] [Updated] (SSHD-425) Fix SFTP permission handling issues for Windows-based SSHD

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

Goldstein Lyor updated SSHD-425:
--------------------------------
    Attachment: 0028-SSHD-425-Fix-SFTP-permission-handling-issues-for-Win.patch

Attached recommended patch. *Note*: I also updated the _DefaultSftpClient#readAttributes_ method to take into account the file type field for version >= 4 when updating the permissions to reflect regular files, directories and symbolic links

> Fix SFTP permission handling issues for Windows-based SSHD
> ----------------------------------------------------------
>
>                 Key: SSHD-425
>                 URL: https://issues.apache.org/jira/browse/SSHD-425
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 1.0.0, 0.14.0
>            Reporter: Goldstein Lyor
>            Priority: Minor
>         Attachments: 0028-SSHD-425-Fix-SFTP-permission-handling-issues-for-Win.patch
>
>
> Since the _Windows_ file system does not have a _permissions_ view like Unix, the SFTP commands that handle such permissions yield incorrect results - e.g., regular files are not recognized as such, read/write permissions are not correctly reported, etc. (and various tests in _SftpTest_ fail...). The code should take into account the current O/S when processing permissions and not assume a POSIX / Unix model.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)