Uploaded image for project: 'JITL - JS7 Integration Templates'
  1. JITL - JS7 Integration Templates
  2. JITL-761

SOSCommandResult - getExitCode handling

    XMLWordPrintable

Details

    • Feature
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • 2.8.2
    • None

    Description

      Note: Internal task - for documentation purposes

      Current Situation

      • With JITL-696, the SOSCommandResult.getExitCode() getter method was changed to return 0 if exitCode = null.
      • However, null is a valid value - for example, when a command execution ends with an exception and no exit code is provided.
      • This change affects other components that explicitly check for exitCode = null; due to this change, that check will never be true.

      Desired Behaviour

      • The getExitCode() method should return the actually set value and not substitute it with a fake value.
      • Multiple sources should be updated to handle this behavior correctly.

      Maintainer notes

      • Affected dependent classes:
        • com.sos.jitl.jobs.db.oracle.SQLPLUSJob
        • com.sos.jitl.jobs.ssh.SSHJob
        • com.sos.commons.git.GitCommand
        • com.sos.commons.vfs.ssh.commons.SSHServerInfo

      Attachments

        Issue Links

          Activity

            People

              re Robert Ehrlich
              re Robert Ehrlich
              Robert Ehrlich Robert Ehrlich
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: