Hide Forgot
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:
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.
fix available in qpid-tools-0.10-2