On 05/19/2014 10:15 AM, Filipe Santos wrote:
Hi all

I'm stuck in with the bug QPID-5292 
(https://issues.apache.org/jira/browse/QPID-5292) in version 0.22.
I know that it has been fixed for version 0.25, but due to production version 
restrictions I will need to correct in version 0.22.
Does anyone know if there is an easy way to fix it in 0.22?

The attached patch should fix it if you are able to recompile.
Index: cpp/src/qpid/broker/Connection.cpp
===================================================================
--- cpp/src/qpid/broker/Connection.cpp	(revision 1516180)
+++ cpp/src/qpid/broker/Connection.cpp	(working copy)
@@ -264,6 +264,13 @@
 void Connection::setUserId(const string& userId)
 {
     ConnectionState::setUserId(userId);
+    if (mgmtObject != 0) {
+        mgmtObject->set_authIdentity(userId);
+        agent->raiseEvent(_qmf::EventClientConnect(mgmtId, userId, mgmtObject->get_remoteProperties()));
+    }
+
+    QPID_LOG_CAT(debug, model, "Create connection. user:" << userId
+        << " rhost:" << mgmtId );
 }
 
 void Connection::setUserProxyAuth(bool b)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to