Bug 688133

Summary: qpid-route tool accepts bad input
Product: Red Hat Enterprise MRG Reporter: Petr Matousek <pematous>
Component: qpid-qmfAssignee: Ken Giusti <kgiusti>
Status: CLOSED CURRENTRELEASE QA Contact: MRG Quality Engineering <mrgqe-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 1.3CC: gsim, jross, tross
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qpid-tools-0.10-2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-10 22:37:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Petr Matousek 2011-03-16 12:34:57 UTC
Description of problem:

In some cases the qpid-route tool accepts bad input.
No error is displayed, return code is equal to 0. 
No route is created (CORRECT).

Some examples:

# qpid-route x y
# echo $?
0
# qpid-route - - localhost
# echo $?
0
# qpid-route add x localhost y z
# echo $?
0
# qpid-route route list
#

This was seen on RHEL5.6 x86_64

Version-Release number of selected component (if applicable):
qpid-tools-0.9.1078967-1.el5

How reproducible:
100%

Steps to Reproduce:
1. 
2. 
3.

Actual results:
qpid-route tool behaves successfully even if bad input is supplied. return code is equal to 0.

Expected results:
Either an error message regarding the bad input or help shall be displayed or both. Return code shall be non-zero.

Additional info:

Comment 1 Gordon Sim 2011-04-01 11:20:00 UTC
http://svn.apache.org/viewvc?rev=1085355&view=rev adds a usage statement and non-zero return code and as such addresses the basic concern here. This has been backported to 0-10 branch as well.

Comment 2 Ken Giusti 2011-04-08 20:03:13 UTC
fix available in qpid-tools-0.10-2