Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 529670 - qpid-config - inappropriate error message if trying to authenticate with non-existing user
qpid-config - inappropriate error message if trying to authenticate with non-...
Status: CLOSED ERRATA
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-qmf (Show other bugs)
1.1.6
All Linux
medium Severity medium
: 1.3
: ---
Assigned To: Nuno Santos
Frantisek Reznicek
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-19 08:44 EDT by Frantisek Reznicek
Modified: 2015-11-15 20:11 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
The qpid-config exits with an incorrect and a non-explanatory message if trying to authenticate a user not present in auth.db (for example: Failed: "TypeError - int argument required"). With this update, a proper explanatory error message is returned (for example: "Connect Failed 320 -connection-forced: Authentication failed").
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-10-14 12:14:40 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2010:0773 normal SHIPPED_LIVE Moderate: Red Hat Enterprise MRG Messaging and Grid Version 1.3 2010-10-14 11:56:44 EDT

  None (edit)
Description Frantisek Reznicek 2009-10-19 08:44:49 EDT
Description of problem:

The qpid-config exits with inappropriate and not explaining message if trying to authenticate with user not present in auth. db.

[root@mrg-qe-02 qpid_common]# qpid-config -a tester2/tp@localhost queues
Failed: TypeError - int argument required
[root@mrg-qe-02 qpid_common]# echo $?
1

The message should be similar/same to the qpid-tool one:
[root@mrg-qe-02 qpid_common]# qpid-tool tester2/tp@localhost
Connect Failed 320 - connection-forced: Authentication failed

Feel free to push for 1.3, if needed.


Version-Release number of selected component (if applicable):
[root@mrg-qe-02 qpid_common]# rpm -qa | egrep '(qpid|rhm)' | sort
python-qpid-0.5.752581-3.el5
qpidc-0.5.752581-28.el5
qpidc-debuginfo-0.5.752581-28.el5
qpidc-devel-0.5.752581-28.el5
qpidc-perftest-0.5.752581-28.el5
qpidc-rdma-0.5.752581-28.el5
qpidc-ssl-0.5.752581-28.el5
qpidd-0.5.752581-28.el5
qpidd-acl-0.5.752581-28.el5
qpidd-cluster-0.5.752581-28.el5
qpidd-devel-0.5.752581-28.el5
qpid-dotnet-0.4.738274-2.el5
qpidd-rdma-0.5.752581-28.el5
qpidd-ssl-0.5.752581-28.el5
qpidd-xml-0.5.752581-28.el5
qpid-java-client-0.5.751061-9.el5
qpid-java-common-0.5.751061-9.el5
rhm-0.5.3206-14.el5
rhm-docs-0.5.756148-1.el5


How reproducible:
100%

Steps to Reproduce:
1. service qpidd start
2. qpid-config -a tester2/tp@localhost queues
  
Actual results:
Invalid error message given.

Expected results:
Error message should explain the problem. (Connect Failed 320 - connection-forced: Authentication failed)

Additional info:
[root@mrg-qe-02 qpid_common]# service qpidd start
Starting Qpid AMQP daemon:                                 [  OK  ]
[root@mrg-qe-02 qpid_common]# qpid-config -a tester2/tp@localhost queues
Failed: TypeError - int argument required
[root@mrg-qe-02 qpid_common]# echo $?
1
Comment 2 Nuno Santos 2009-11-12 15:00:08 EST
This seems to have already been fixed at svn rev 803168, now I get the following kind of message:

Failed: ConnectionFailed: (320, u'connection-forced: Authentication failed')

and

Failed: SessionException: ExecutionException(error_code=403, command_id=serial(11), class_code=0, command_code=0, field_index=0, description=u'unauthorized-access: authorised user id : anonymous but user id in message declared as testerX (qpid/broker/SemanticState.cpp:372)', error_info={}, channel=1, id=serial(0))
Comment 3 Frantisek Reznicek 2010-07-27 05:05:31 EDT
The issue has been fixed, verified on RHEL4.8 / 5.5 i386 / x86_64 on packages:
python-qpid-0.7.946106-9.el5
qpid-cpp-client-0.7.946106-10.el5
qpid-cpp-client-devel-0.7.946106-10.el5
qpid-cpp-client-devel-docs-0.7.946106-10.el5
qpid-cpp-client-rdma-0.7.946106-10.el5
qpid-cpp-client-ssl-0.7.946106-10.el5
qpid-cpp-mrg-debuginfo-0.7.946106-9.el5
qpid-cpp-server-0.7.946106-10.el5
qpid-cpp-server-cluster-0.7.946106-10.el5
qpid-cpp-server-devel-0.7.946106-10.el5
qpid-cpp-server-rdma-0.7.946106-10.el5
qpid-cpp-server-ssl-0.7.946106-10.el5
qpid-cpp-server-store-0.7.946106-10.el5
qpid-cpp-server-xml-0.7.946106-10.el5
qpid-java-client-0.7.946106-6.el5
qpid-java-common-0.7.946106-6.el5
qpid-tools-0.7.946106-7.el5
rh-qpid-cpp-tests-0.7.946106-10.el5

-> VERIFIED
Comment 4 Martin Prpič 2010-10-07 09:41:29 EDT
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
The qpid-config exits with an incorrect and a non-explanatory message if trying to authenticate a user not present in auth.db (for example: Failed: "TypeError - int argument required"). With this update, a proper explanatory error message is returned (for example: "Connect Failed 320 -connection-forced: Authentication failed").
Comment 6 errata-xmlrpc 2010-10-14 12:14:40 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2010-0773.html

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