Good Day,

I am working with the paste OpenID integration, and I think I've found a
bug.  When the OpenID library fails to validate the user's URL, the
framework no value is returned to the WSGI handler.  This causes an
iterator exception.

I have attached a patch to fix the problem.


Thanks,
Chris

http://baus.net/
Index: paste/auth/open_id.py
===================================================================
--- paste/auth/open_id.py	(revision 5930)
+++ paste/auth/open_id.py	(working copy)
@@ -201,7 +201,7 @@
                 fmt = 'Could not find OpenID information in <q>%s</q>'
 
             message = fmt % (cgi.escape(openid_url),)
-            self.render(request, message, css_class='error', form_contents=openid_url)
+            return self.render(request, message, css_class='error', form_contents=openid_url)
         elif status == consumer.SUCCESS:
             # The URL was a valid identity URL. Now we construct a URL
             # that will get us to process the server response. We will
_______________________________________________
Paste-users mailing list
[email protected]
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users

Reply via email to