Bug 824775 - If script returns -1, operation fails without details.
Summary: If script returns -1, operation fails without details.
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: Operations
Version: 4.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-24 08:54 UTC by bkramer
Modified: 2022-03-31 04:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 824773
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker EMBJOPR-344 0 Minor Open If script returns -1, operation fails without details. Let's display stderr. 2013-09-13 14:57:14 UTC

Description bkramer 2012-05-24 08:54:49 UTC
Description of problem:
If some shell script returns something else than 0, RHQ operation only says "Exit code was '1', see operation results for details", but there are no op results. The RHQ UI should not fail with this generic message.


Version-Release number of selected component (if applicable):
RHQ 4.2

How reproducible:
Always


Steps to Reproduce:
1.run the wsprovide.sh with no arguments.
  
Actual results:
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
at org.rhq.core.pc.operation.OperationInvocation.run(OperationInvocation.java:278)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)



Expected results:
The operation should fail but the output of the failure icon should point to the proper cause of the failure. 


Additional info:
The same issue was raised for:

1. JBoss Admin console (EMBJOPR-344: https://issues.jboss.org/browse/EMBJOPR-344) 
2. JON (https://bugzilla.redhat.com/show_bug.cgi?id=824773)

Comment 1 Mike Foley 2012-05-29 14:41:17 UTC
per BZ Triage 5/29/2012 (ccrouch, loleary, asantos, mfoley, myarborough) moving these to JON 3.1.1 or later


Note You need to log in before you can comment on or make changes to this bug.