Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-17962

SCP task should show the error code for every error

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • SCP and SSH tasks
    • None
    • 0
    • 1
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Context

      Problem

      It appears the scp task uses:

      https://github.com/hierynomus/sshj/blob/master/src/main/java/net/schmizz/sshj/xfer/scp/SCPEngine.java

      Lines 74-76 have a default response if the return code is greater than 1 that does not display the remoteMessage. The suggestion is to change it so that if greater than 1 AND remoteMessage is null or empty string, then do the default response; otherwise, it would be helpful with troubleshooting if the remoteMessage is displayed if rc is greater than 1.

      We had a case where scp was closing connection and throwing the default message without saying why that took a lot of effort to figure out (stumbled on solution). If the remoteMessage had displayed, we would have saved a lot of our time and your time.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              5e55f07f838c David Shapiro
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: