You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "M. van der Plas (JIRA)" <ji...@codehaus.org> on 2006/03/25 12:52:11 UTC

[jira] Created: (WAGON-39) scp-external-wagen and ssh using ProxyCommand blacklist repository

scp-external-wagen and ssh using ProxyCommand blacklist repository   
---------------------------------------------------------------------

         Key: WAGON-39
         URL: http://jira.codehaus.org/browse/WAGON-39
     Project: wagon
        Type: Bug

    Versions: 1.0-alpha-6    
 Environment: linux 2.6.15-1.2054_FC5
client ssh: OpenSSH_4.3p2, OpenSSL 0.9.8a 11 Oct 2005
server in the middle ssh:OpenSSH_4.2, OpenSSL 0.9.7d 17 Mar 2004
 


    Reporter: M. van der Plas
 Attachments: EndsWith.patch

I use my laptop to work at the office and at home. The office has a repository for inhouse developed projects. 
ssh channles are used to connect with the office  repository from home.
I configured ssh using with a  ProcyCommand to tunnel to the subversion respository.

I configured mvn using a home specific settings.xml to use scp-external-ssh as the standard ssh wagon cannot handle the ProxyCommand.
This  fails when external 3rd party artifacts and plugins are checked in the company repositories.   
Since they are located in the ibiblio central repository the scp command fails. 
This is normally not a problem because the Wagons check if the output of the copy command is "No such file or directory". 
If so, the artifact is searched in another repository. 

With the introduction of the ProxyCommand this mechanism does not work any more. 
ProxyCommand prints "Killed by signal 1" to stderr when the scp command fails.
See also http://lists.debian.org/debian-ssh/2005/06/msg00074.html for the ssh bug.

The problem is that both wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/ScpWagon.java  (revision 388735)
and wagon-providers/wagon-ssh-external/src/main/java/org/apache/maven/wagon/providers/sshext/ScpExternalWagon.java      (revision 388735)
use stderr.endsWith("No such file or directory") while stderr in my case ends with "Killed by sgnal 1."

The problem can be fixed by using indexOf( "No such file or directory") != -1 instead of the endsWith() call.

I've implemented this fix and verified that the problem did not occur. The patch is attached.



-- 
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-39) scp-external-wagen and ssh using ProxyCommand blacklist repository

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/WAGON-39?page=all ]

Carlos Sanchez updated WAGON-39:
--------------------------------

    Component: wagon-ssh-external

> scp-external-wagen and ssh using ProxyCommand blacklist repository   
> ---------------------------------------------------------------------
>
>          Key: WAGON-39
>          URL: http://jira.codehaus.org/browse/WAGON-39
>      Project: wagon
>         Type: Bug

>   Components: wagon-ssh-external
>     Versions: 1.0-alpha-6
>  Environment: linux 2.6.15-1.2054_FC5
> client ssh: OpenSSH_4.3p2, OpenSSL 0.9.8a 11 Oct 2005
> server in the middle ssh:OpenSSH_4.2, OpenSSL 0.9.7d 17 Mar 2004
>  
>     Reporter: M. van der Plas
>      Fix For: 1.0-beta-1
>  Attachments: EndsWith.patch
>
>
> I use my laptop to work at the office and at home. The office has a repository for inhouse developed projects. 
> ssh channles are used to connect with the office  repository from home.
> I configured ssh using with a  ProcyCommand to tunnel to the subversion respository.
> I configured mvn using a home specific settings.xml to use scp-external-ssh as the standard ssh wagon cannot handle the ProxyCommand.
> This  fails when external 3rd party artifacts and plugins are checked in the company repositories.   
> Since they are located in the ibiblio central repository the scp command fails. 
> This is normally not a problem because the Wagons check if the output of the copy command is "No such file or directory". 
> If so, the artifact is searched in another repository. 
> With the introduction of the ProxyCommand this mechanism does not work any more. 
> ProxyCommand prints "Killed by signal 1" to stderr when the scp command fails.
> See also http://lists.debian.org/debian-ssh/2005/06/msg00074.html for the ssh bug.
> The problem is that both wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/ScpWagon.java  (revision 388735)
> and wagon-providers/wagon-ssh-external/src/main/java/org/apache/maven/wagon/providers/sshext/ScpExternalWagon.java      (revision 388735)
> use stderr.endsWith("No such file or directory") while stderr in my case ends with "Killed by sgnal 1."
> The problem can be fixed by using indexOf( "No such file or directory") != -1 instead of the endsWith() call.
> I've implemented this fix and verified that the problem did not occur. The patch is attached.

-- 
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-165) scp-external-wagen and ssh using ProxyCommand blacklist repository

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

Brett Porter updated WAGON-165:
-------------------------------

    Fix Version/s: 1.0-beta-3

> scp-external-wagen and ssh using ProxyCommand blacklist repository   
> ---------------------------------------------------------------------
>
>                 Key: WAGON-165
>                 URL: http://jira.codehaus.org/browse/WAGON-165
>             Project: Maven Wagon
>          Issue Type: Bug
>          Components: wagon-ssh
>         Environment: linux 2.6.15-1.2054_FC5
> client ssh: OpenSSH_4.3p2, OpenSSL 0.9.8a 11 Oct 2005
> server in the middle ssh:OpenSSH_4.2, OpenSSL 0.9.7d 17 Mar 2004
>  
>            Reporter: M. van der Plas
>             Fix For: 1.0-beta-3
>
>         Attachments: EndsWith.patch
>
>
> I use my laptop to work at the office and at home. The office has a repository for inhouse developed projects. 
> ssh channles are used to connect with the office  repository from home.
> I configured ssh using with a  ProcyCommand to tunnel to the subversion respository.
> I configured mvn using a home specific settings.xml to use scp-external-ssh as the standard ssh wagon cannot handle the ProxyCommand.
> This  fails when external 3rd party artifacts and plugins are checked in the company repositories.   
> Since they are located in the ibiblio central repository the scp command fails. 
> This is normally not a problem because the Wagons check if the output of the copy command is "No such file or directory". 
> If so, the artifact is searched in another repository. 
> With the introduction of the ProxyCommand this mechanism does not work any more. 
> ProxyCommand prints "Killed by signal 1" to stderr when the scp command fails.
> See also http://lists.debian.org/debian-ssh/2005/06/msg00074.html for the ssh bug.
> The problem is that both wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/ScpWagon.java  (revision 388735)
> and wagon-providers/wagon-ssh-external/src/main/java/org/apache/maven/wagon/providers/sshext/ScpExternalWagon.java      (revision 388735)
> use stderr.endsWith("No such file or directory") while stderr in my case ends with "Killed by sgnal 1."
> The problem can be fixed by using indexOf( "No such file or directory") != -1 instead of the endsWith() call.
> I've implemented this fix and verified that the problem did not occur. The patch is attached.

-- 
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-165) scp-external-wagen and ssh using ProxyCommand blacklist repository

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

Brett Porter closed WAGON-165.
------------------------------

      Assignee: Brett Porter
    Resolution: Fixed

applied thanks

> scp-external-wagen and ssh using ProxyCommand blacklist repository   
> ---------------------------------------------------------------------
>
>                 Key: WAGON-165
>                 URL: http://jira.codehaus.org/browse/WAGON-165
>             Project: Maven Wagon
>          Issue Type: Bug
>          Components: wagon-ssh
>         Environment: linux 2.6.15-1.2054_FC5
> client ssh: OpenSSH_4.3p2, OpenSSL 0.9.8a 11 Oct 2005
> server in the middle ssh:OpenSSH_4.2, OpenSSL 0.9.7d 17 Mar 2004
>  
>            Reporter: M. van der Plas
>            Assignee: Brett Porter
>             Fix For: 1.0-beta-3
>
>         Attachments: EndsWith.patch
>
>
> I use my laptop to work at the office and at home. The office has a repository for inhouse developed projects. 
> ssh channles are used to connect with the office  repository from home.
> I configured ssh using with a  ProcyCommand to tunnel to the subversion respository.
> I configured mvn using a home specific settings.xml to use scp-external-ssh as the standard ssh wagon cannot handle the ProxyCommand.
> This  fails when external 3rd party artifacts and plugins are checked in the company repositories.   
> Since they are located in the ibiblio central repository the scp command fails. 
> This is normally not a problem because the Wagons check if the output of the copy command is "No such file or directory". 
> If so, the artifact is searched in another repository. 
> With the introduction of the ProxyCommand this mechanism does not work any more. 
> ProxyCommand prints "Killed by signal 1" to stderr when the scp command fails.
> See also http://lists.debian.org/debian-ssh/2005/06/msg00074.html for the ssh bug.
> The problem is that both wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/ScpWagon.java  (revision 388735)
> and wagon-providers/wagon-ssh-external/src/main/java/org/apache/maven/wagon/providers/sshext/ScpExternalWagon.java      (revision 388735)
> use stderr.endsWith("No such file or directory") while stderr in my case ends with "Killed by sgnal 1."
> The problem can be fixed by using indexOf( "No such file or directory") != -1 instead of the endsWith() call.
> I've implemented this fix and verified that the problem did not occur. The patch is attached.

-- 
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] Moved: (WAGON-165) scp-external-wagen and ssh using ProxyCommand blacklist repository

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

Brett Porter moved WAGONSSH-48 to WAGON-165:
--------------------------------------------

    Affects Version/s:     (was: 1.0-alpha-6)
          Component/s:     (was: wagon-ssh)
                       wagon-ssh
                  Key: WAGON-165  (was: WAGONSSH-48)
              Project: Maven Wagon  (was: wagon-ssh)

> scp-external-wagen and ssh using ProxyCommand blacklist repository   
> ---------------------------------------------------------------------
>
>                 Key: WAGON-165
>                 URL: http://jira.codehaus.org/browse/WAGON-165
>             Project: Maven Wagon
>          Issue Type: Bug
>          Components: wagon-ssh
>         Environment: linux 2.6.15-1.2054_FC5
> client ssh: OpenSSH_4.3p2, OpenSSL 0.9.8a 11 Oct 2005
> server in the middle ssh:OpenSSH_4.2, OpenSSL 0.9.7d 17 Mar 2004
>  
>            Reporter: M. van der Plas
>         Attachments: EndsWith.patch
>
>
> I use my laptop to work at the office and at home. The office has a repository for inhouse developed projects. 
> ssh channles are used to connect with the office  repository from home.
> I configured ssh using with a  ProcyCommand to tunnel to the subversion respository.
> I configured mvn using a home specific settings.xml to use scp-external-ssh as the standard ssh wagon cannot handle the ProxyCommand.
> This  fails when external 3rd party artifacts and plugins are checked in the company repositories.   
> Since they are located in the ibiblio central repository the scp command fails. 
> This is normally not a problem because the Wagons check if the output of the copy command is "No such file or directory". 
> If so, the artifact is searched in another repository. 
> With the introduction of the ProxyCommand this mechanism does not work any more. 
> ProxyCommand prints "Killed by signal 1" to stderr when the scp command fails.
> See also http://lists.debian.org/debian-ssh/2005/06/msg00074.html for the ssh bug.
> The problem is that both wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/ScpWagon.java  (revision 388735)
> and wagon-providers/wagon-ssh-external/src/main/java/org/apache/maven/wagon/providers/sshext/ScpExternalWagon.java      (revision 388735)
> use stderr.endsWith("No such file or directory") while stderr in my case ends with "Killed by sgnal 1."
> The problem can be fixed by using indexOf( "No such file or directory") != -1 instead of the endsWith() call.
> I've implemented this fix and verified that the problem did not occur. The patch is attached.

-- 
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-39) scp-external-wagen and ssh using ProxyCommand blacklist repository

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/WAGON-39?page=all ]

Carlos Sanchez updated WAGON-39:
--------------------------------

    Fix Version: 1.0-alpha-7

> scp-external-wagen and ssh using ProxyCommand blacklist repository   
> ---------------------------------------------------------------------
>
>          Key: WAGON-39
>          URL: http://jira.codehaus.org/browse/WAGON-39
>      Project: wagon
>         Type: Bug

>     Versions: 1.0-alpha-6
>  Environment: linux 2.6.15-1.2054_FC5
> client ssh: OpenSSH_4.3p2, OpenSSL 0.9.8a 11 Oct 2005
> server in the middle ssh:OpenSSH_4.2, OpenSSL 0.9.7d 17 Mar 2004
>  
>     Reporter: M. van der Plas
>      Fix For: 1.0-alpha-7
>  Attachments: EndsWith.patch
>
>
> I use my laptop to work at the office and at home. The office has a repository for inhouse developed projects. 
> ssh channles are used to connect with the office  repository from home.
> I configured ssh using with a  ProcyCommand to tunnel to the subversion respository.
> I configured mvn using a home specific settings.xml to use scp-external-ssh as the standard ssh wagon cannot handle the ProxyCommand.
> This  fails when external 3rd party artifacts and plugins are checked in the company repositories.   
> Since they are located in the ibiblio central repository the scp command fails. 
> This is normally not a problem because the Wagons check if the output of the copy command is "No such file or directory". 
> If so, the artifact is searched in another repository. 
> With the introduction of the ProxyCommand this mechanism does not work any more. 
> ProxyCommand prints "Killed by signal 1" to stderr when the scp command fails.
> See also http://lists.debian.org/debian-ssh/2005/06/msg00074.html for the ssh bug.
> The problem is that both wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/ScpWagon.java  (revision 388735)
> and wagon-providers/wagon-ssh-external/src/main/java/org/apache/maven/wagon/providers/sshext/ScpExternalWagon.java      (revision 388735)
> use stderr.endsWith("No such file or directory") while stderr in my case ends with "Killed by sgnal 1."
> The problem can be fixed by using indexOf( "No such file or directory") != -1 instead of the endsWith() call.
> I've implemented this fix and verified that the problem did not occur. The patch is attached.

-- 
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