Red Hat Bugzilla – Bug 824773
If script returns -1, operation fails without details.
Last modified: 2014-01-02 15:43:27 EST
Description of problem:
If some shell script returns something else than 0, JON operation only says "Exit code was '1', see operation results for details", but there are no op results. The JON UI should not fail with this generic message.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.run the wsprovide.sh with no arguments.
The operation will fail but the output of the failure icon will show the following generic message:
java.lang.Exception: Exit code was '1', see operation results for details
The operation should fail but the output of the failure icon should point to the proper cause of the failure.
The same issue was raised for JBoss Admin console (EMBJOPR-344: https://issues.jboss.org/browse/EMBJOPR-344)
per BZ Triage 5/29/2012 (ccrouch, loleary, asantos, mfoley, myarborough) moving these to JON 3.1.1 or later
From EMBJOPR-344 the goal would be to display the output of stderr as part of the operation results.
Setting priority to medium, since this is not a high impact issue.
can you please investigate the effort of a fix here?
i'm working on this. should be easy to fix
git master commit : 31ec51e
we now show the results (as defined by the plugin metadata) in the UI, even if the operation failed. This is helpful in cases like this where the results contain data that might be helpful to the user to figure out why the failure occurred.