From 0af66bbe3d82b53e224b63b8756f5b11192a36ca Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 20 Jul 2010 19:56:42 +0000 Subject: Fix bug in cluster with authentication: nodes exit with "unauthorized-access" Adding a node to a cluster on which authentication is enabled and on which there are existing connections authenticated with mechanisms other than anonymous, may result in nodes exiting the cluster with inconsistent authorisation errors. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@965979 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/cluster/UpdateClient.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpp/src/qpid/cluster/UpdateClient.cpp') diff --git a/cpp/src/qpid/cluster/UpdateClient.cpp b/cpp/src/qpid/cluster/UpdateClient.cpp index cb296ab8da..54c5fa0bcc 100644 --- a/cpp/src/qpid/cluster/UpdateClient.cpp +++ b/cpp/src/qpid/cluster/UpdateClient.cpp @@ -365,6 +365,8 @@ void UpdateClient::updateConnection(const boost::intrusive_ptr& upda connectionSettings.maxFrameSize = bc.getFrameMax(); shadowConnection.open(updateeUrl, connectionSettings); + ClusterConnectionProxy(shadowConnection).shadowSetUser(bc.getUserId()); + bc.eachSessionHandler(boost::bind(&UpdateClient::updateSession, this, _1)); // Safe to use decoder here because we are stalled for update. std::pair fragment = decoder.get(updateConnection->getId()).getFragment(); -- cgit v1.2.1