Package: python-openid
Version: 2.0.2-1
Severity: normal
Tags: patch

OpenID server implementation in python-openid fails to interact with OpenID 1.0
providers:

decodeRequest from such provider sets claimed_id = None, but this fails in
setArg due to "assert value is not None".

Attached patch works around this bug.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (750, 'testing'), (700, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-ovz005 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-openid depends on:
ii  python                        2.4.4-6    An interactive high-level object-o
ii  python-central                0.5.15-0.1 register and build utility for Pyt

python-openid recommends no packages.

-- no debconf information
--- a/apps/openidserver/views.py        Wed Mar 19 11:38:01 2008 +0200
+++ b/apps/openidserver/views.py        Thu Mar 20 10:55:27 2008 +0200
@@ -107,6 +107,8 @@ def endpoint(request):
                # !TODO! Right, we got to ask the user whether he trusts this 
trust_root, and whether he wants to add it to his
                #        list of permanently trusted roots. This is handled in 
the "users" application.
        else:
+               if openid_request.claimed_id is None:
+                       openid_request.claimed_id = openid_request.identity
                redirect = openid_request.encodeToURL(request.META["HTTP_HOST"] 
+ urlreverse("openidserver.views.accept"))
                return HttpResponseRedirect(redirect)
     else:




Reply via email to