From 64b26d7ac98b821e176f97d96a6580dafac353f6 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Thu, 12 Feb 2009 18:10:23 +0000 Subject: Remove unicode when dealing with usernames and passwords in URLs. This solves a problem seen with qpid-route when credentials are supplied. A test was added to regression test. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@743819 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/python/qmf/console.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qpid/python') diff --git a/qpid/python/qmf/console.py b/qpid/python/qmf/console.py index 49f920aa51..ed25c77acc 100644 --- a/qpid/python/qmf/console.py +++ b/qpid/python/qmf/console.py @@ -96,8 +96,8 @@ class BrokerURL(URL): self.port = 5671 else: self.port = 5672 - self.authName = self.user or "guest" - self.authPass = self.password or "guest" + self.authName = str(self.user) or "guest" + self.authPass = str(self.password) or "guest" self.authMech = "PLAIN" def name(self): -- cgit v1.2.1