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/07/26 14:17:04 UTC

[jira] [Comment Edited] (SSHD-538) Handle correctly paths with double-slashes in them

    [ https://issues.apache.org/jira/browse/SSHD-538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14641931#comment-14641931 ] 

Goldstein Lyor edited comment on SSHD-538 at 7/26/15 12:16 PM:
---------------------------------------------------------------

There is a subtle bug regarding attempt to reach locations "beyond" the root folder on a real file system instead of a rooted one.


was (Author: lgoldstein):
There is a subtle bug which exists in Linux as well, but can be tested only in Windows

> Handle correctly paths with double-slashes in them
> --------------------------------------------------
>
>                 Key: SSHD-538
>                 URL: https://issues.apache.org/jira/browse/SSHD-538
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>            Reporter: Goldstein Lyor
>            Assignee: Goldstein Lyor
>            Priority: Minor
>             Fix For: 1.0.0
>
>
> According to [Single Unix Specification version 3, section 3.266|http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap03.html#tag_03_266]
> {quote}
> Multiple successive slashes are considered to be the same as one slash
> {quote}.
> Also according to [section 4.11 - Pathname resolution|http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap04.html#tag_04_11]
> {quote}
> A pathname that contains at least one non-slash character and that ends with one or more trailing slashes shall be resolved as if a single dot character ( '.' ) were appended to the pathname.
> {quote}



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