zowe / zowe/zowe-client-java-sdk

Handle Non-Zero USS Command Exit Codes in UssCmd

Open
#631 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
55
Forks
32
Avg merge
1d 2m
Merged PRs (30d)
6

Description

Currently, UssCmd.issueCommand() waits for the SSH command to complete and returns the command output as a String, but it does not inspect the USS command's exit status.

A USS command can complete successfully from the SSH/JSCH perspective while still returning a non-zero exit code, indicating that the command itself failed.

This behavior should be evaluated and potentially updated so that a non-zero USS exit code results in a UssCmdException.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at UssCmd.issueCommand() and inspect how the SSH/JSCH command completion and exit status are currently handled. Trace the existing UssCmdException usage and relevant tests, if present. Done means a non-zero USS exit code produces UssCmdException while successful commands continue returning their output.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.