Maven Wagon
  1. Maven Wagon
  2. WAGON-182

SSH transport hangs on large transfers

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0-alpha-7
    • Component/s: wagon-ssh
    • Labels:
      None
    • Number of attachments :
      0

      Description

      (1.0-alpha-6 needs to be released and a7 added as a new version)

      executeCommand( "cd " + path + "; unzip -o " + zipFile.getName() + "; rm -f " + zipFile.getName() );

      This code hangs when the zip is large. The problem is that the process's outputstream is not read so eventually it fills its buffer and the process hangs. My fix? Add "-q" to unzip's arguments so that it does not spew tons of output.

        Issue Links

          Activity

          Hide
          Adrian added a comment -

          Once this has been fixed and updated will maven 2.0.2 automatically download this jar and update itself? Or, alternatively can we just replace wagon-ssh-external-1.0-alpha-6.jar with wagon-ssh-external-1.0-alpha-7.jar in our maven 2 installation lib directory?

          Where is the class path set to add wagon-ssh-external-1.0-alpha-6.jar?

          Show
          Adrian added a comment - Once this has been fixed and updated will maven 2.0.2 automatically download this jar and update itself? Or, alternatively can we just replace wagon-ssh-external-1.0-alpha-6.jar with wagon-ssh-external-1.0-alpha-7.jar in our maven 2 installation lib directory? Where is the class path set to add wagon-ssh-external-1.0-alpha-6.jar?
          Hide
          Brett Porter added a comment -

          now that it is included in M2_HOME, it will need to wait until a Maven 2.0.3 release.

          Show
          Brett Porter added a comment - now that it is included in M2_HOME, it will need to wait until a Maven 2.0.3 release.
          Hide
          John Casey added a comment -

          fixed. Implemented proposed modification to the unzip command line.

          Show
          John Casey added a comment - fixed. Implemented proposed modification to the unzip command line.
          Hide
          Lukasz Szelag added a comment -

          John, thanks for fixing this. Can you attach a patch? Thanks.

          Show
          Lukasz Szelag added a comment - John, thanks for fixing this. Can you attach a patch? Thanks.
          Hide
          Michael Semb Wever added a comment -

          maven-2.0.3 has bugs relating to profiles that makes it unusable for me.
          I simply copied the http://www.ibiblio.org/maven2/org/apache/maven/wagon/wagon-ssh/1.0-alpha-7/wagon-ssh-1.0-alpha-7.jar over my wagon-ssh-1.0-alpha-6.jar in my maven-2.0.2 directory and everything worked lovely.

          Show
          Michael Semb Wever added a comment - maven-2.0.3 has bugs relating to profiles that makes it unusable for me. I simply copied the http://www.ibiblio.org/maven2/org/apache/maven/wagon/wagon-ssh/1.0-alpha-7/wagon-ssh-1.0-alpha-7.jar over my wagon-ssh-1.0-alpha-6.jar in my maven-2.0.2 directory and everything worked lovely.

            People

            • Assignee:
              John Casey
              Reporter:
              Mike Perham
            • Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: