zowe / zowe/zowe-client-java-sdk
Handle Non-Zero USS Command Exit Codes in UssCmd
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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