You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dan Tran (JIRA)" <ji...@codehaus.org> on 2008/12/07 10:24:19 UTC

[jira] Created: (WAGON-250) SftpWagon.getFileList gets String index out of range: 0

SftpWagon.getFileList gets String index out of range: 0
-------------------------------------------------------

                 Key: WAGON-250
                 URL: http://jira.codehaus.org/browse/WAGON-250
             Project: Maven Wagon
          Issue Type: Bug
          Components: wagon-ssh
    Affects Versions: 1.0-beta-4
         Environment: xp, linux
            Reporter: Dan Tran


to reproduce it, run mvn wagon:list -Dwagon.url=sftp://localhost

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (WAGON-250) SftpWagon.getFileList gets String index out of range: 0

Posted by "Dan Tran (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/WAGON-250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Tran updated WAGON-250:
---------------------------

    Attachment: WAGON-250.diff

wagon-sftp does not understand getFileList("") and there "" must be translated to "."

Also when resourceExists( resourceName ) where resourceName has a "/" and the end to indicate it wants directory check.  wagon-sftp throw exception instead of return false value

The attached files solves those issues and pass wagon:list test.

the test case is at 

https://svn.codehaus.org/mojo/trunk/mojo/wagon-maven-plugin/src/it/wagon-250

> SftpWagon.getFileList gets String index out of range: 0
> -------------------------------------------------------
>
>                 Key: WAGON-250
>                 URL: http://jira.codehaus.org/browse/WAGON-250
>             Project: Maven Wagon
>          Issue Type: Bug
>          Components: wagon-ssh
>    Affects Versions: 1.0-beta-4
>         Environment: xp, linux
>            Reporter: Dan Tran
>         Attachments: WAGON-250.diff
>
>
> to reproduce it, run mvn wagon:list -Dwagon.url=sftp://localhost

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (WAGON-250) SftpWagon.getFileList gets String index out of range: 0

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/WAGON-250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter closed WAGON-250.
------------------------------

      Assignee: Brett Porter
    Resolution: Fixed

made various fixes to consistency between wagons on getFileList returns. Upgraded to commons-net 2.0 so that we could return hidden files on ftp

> SftpWagon.getFileList gets String index out of range: 0
> -------------------------------------------------------
>
>                 Key: WAGON-250
>                 URL: http://jira.codehaus.org/browse/WAGON-250
>             Project: Maven Wagon
>          Issue Type: Bug
>          Components: wagon-ssh
>    Affects Versions: 1.0-beta-4
>         Environment: xp, linux
>            Reporter: Dan Tran
>            Assignee: Brett Porter
>             Fix For: 1.0-beta-5
>
>         Attachments: WAGON-250.diff
>
>
> to reproduce it, run mvn wagon:list -Dwagon.url=sftp://localhost

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (WAGON-250) SftpWagon.getFileList gets String index out of range: 0

Posted by "Dan Tran (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/WAGON-250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=157163#action_157163 ] 

Dan Tran commented on WAGON-250:
--------------------------------

happens on this call

getFileList( "" )

This call is legal on all other wagon implementations.



> SftpWagon.getFileList gets String index out of range: 0
> -------------------------------------------------------
>
>                 Key: WAGON-250
>                 URL: http://jira.codehaus.org/browse/WAGON-250
>             Project: Maven Wagon
>          Issue Type: Bug
>          Components: wagon-ssh
>    Affects Versions: 1.0-beta-4
>         Environment: xp, linux
>            Reporter: Dan Tran
>
> to reproduce it, run mvn wagon:list -Dwagon.url=sftp://localhost

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (WAGON-250) SftpWagon.getFileList gets String index out of range: 0

Posted by "Dan Tran (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/WAGON-250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Tran updated WAGON-250:
---------------------------

    Fix Version/s: 1.0-beta-5

> SftpWagon.getFileList gets String index out of range: 0
> -------------------------------------------------------
>
>                 Key: WAGON-250
>                 URL: http://jira.codehaus.org/browse/WAGON-250
>             Project: Maven Wagon
>          Issue Type: Bug
>          Components: wagon-ssh
>    Affects Versions: 1.0-beta-4
>         Environment: xp, linux
>            Reporter: Dan Tran
>             Fix For: 1.0-beta-5
>
>         Attachments: WAGON-250.diff
>
>
> to reproduce it, run mvn wagon:list -Dwagon.url=sftp://localhost

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira