Uploaded image for project: 'Maven Wagon'
  1. Maven Wagon
  2. WAGON-544

Work around JSch issue #122

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.3.1
    • wagon-ssh
    • None

    Description

      JSch's Channels$MyPipedInputStream#read() does not return -1 when EOF is reached. This causes the reading thread to block and never to resume. This happens only when more bytes are requested to be read than available from the stream. It does not read at most bytes. So one has to know the last less-than-the-buffer-length chunk and recalculate remaining bytes. This worked conincidentially because it worked that way.

      This is brittle, as long as the upstream bug is not fixed we will restore the previous AbstractWagon#transfer() implementation in AbstractJschWagon.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            michael-o Michael Osipov
            michael-o Michael Osipov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment