bodhi/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 34e2a521d904737b5e5899413e240c798a742d79 Merge: 77af16a... c90fc84... Author: Luke Macken lmacken@redhat.com Date: Thu Apr 30 14:39:37 2009 -0400
Merge branch 'master' of git+ssh://git.fedoraproject.org/git/bodhi
commit 77af16a25849d34f2271306e5bd0c569a0f270f6 Merge: 0255c04... e23a1bf... Author: Luke Macken lmacken@redhat.com Date: Sat Mar 21 16:57:04 2009 -0400
Merge branch 'master' of git+ssh://git.fedoraproject.org/git/bodhi
commit 0255c04cb651394b954bf7d6c5e02a1e67cda0d1 Author: Luke Macken lmacken@redhat.com Date: Mon Mar 9 12:06:06 2009 -0400
Only pass the cookie value as the session_id in the auth_params.
This used to work in the ProxyClient, but apparently it was never supposed to work like this :)
diff --git a/bodhi/admin.py b/bodhi/admin.py index a176313..6ea8634 100644 --- a/bodhi/admin.py +++ b/bodhi/admin.py @@ -189,7 +189,7 @@ class AdminController(Controller, SecureResource): client = ProxyClient(config.get('masher'), debug=True) cookie = SimpleCookie(cherrypy.request.headers.get('Cookie')) session, data = client.send_request(method, - auth_params={'session_id': cookie.get('tg-visit')}, + auth_params={'session_id': cookie.get('tg-visit').value}, req_params=kwargs) log.debug("Remote method returned %s" % repr(data)) if data.get('tg_flash'):