Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-1053

jclouds-sshj doesn't handle getExitStatus returning null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.9.2
    • 2.0.0
    • jclouds-drivers

    Description

      In the SshjSshClient ExecConnection.create function, this line:

                  int errorStatus = output.getExitStatus();
      

      Does not currently handle the case when output.getExitStatus() is null, which is a valid return value according to SSHJ's JavaDocs. It's possible that the command needs to be explicitly closed before calling getExitStatus: https://github.com/hierynomus/sshj/issues/114.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mike.wilson Michael Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: