Letractively / sagenb

Automatically exported from code.google.com/p/sagenb
0 stars 0 forks source link

OpenID login gives server error when I enter a password #63

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  Make an OpenID login (e.g., using google)
2.  choose a user name (e.g., 'myname')
3.  try to log in using 'myname' and a random password

What is the expected output? What do you see instead?

I expect it to tell me to use openid to log in.  Instead, I get a server error 
and this is in the logs:

2011-10-18 21:10:55-0700 [-] WSGI application error
        Traceback (most recent call last):
          File "/sagenb/sage_install/sage-4.7.1/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-linux-x86_64.egg/twisted/python/threadpool.py", line 230, in _worker
            o = self.q.get()
          File "/sagenb/sage_install/sage-4.7.1/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", line 118, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/sagenb/sage_install/sage-4.7.1/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", line 83, in callWithContext
            self.contexts.pop()
          File "/sagenb/sage_install/sage-4.7.1/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-linux-x86_64.egg/twisted/web/wsgi.py", line 338, in run
            self.started = True
        --- <exception caught here> ---
          File "/sagenb/sage_install/sage-4.7.1/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-linux-x86_64.egg/twisted/web/wsgi.py", line 313, in run
            appIterator = self.application(self.environ, self.startResponse)
          File "/sagenb/sage_install/sage-4.7.1/local/lib/python2.6/site-packages/Flask-0.7.2-py2.6.egg/flask/app.py", line 1306, in __call__
            return self.wsgi_app(environ, start_response)
          File "/sagenb/sage_install/sage-4.7.1/local/lib/python2.6/site-packages/Flask-0.7.2-py2.6.egg/flask/app.py", line 1294, in wsgi_app
            response = self.make_response(self.handle_exception(e))
          File "/sagenb/sage_install/sage-4.7.1/local/lib/python2.6/site-packages/Flask-0.7.2-py2.6.egg/flask/app.py", line 1292, in wsgi_app
            response = self.full_dispatch_request()
          File "/sagenb/sage_install/sage-4.7.1/local/lib/python2.6/site-packages/Flask-0.7.2-py2.6.egg/flask/app.py", line 1062, in full_dispatch_request
            rv = self.handle_user_exception(e)
          File "/sagenb/sage_install/sage-4.7.1/local/lib/python2.6/site-packages/Flask-0.7.2-py2.6.egg/flask/app.py", line 1060, in full_dispatch_request
            rv = self.dispatch_request()
          File "/sagenb/sage_install/sage-4.7.1/local/lib/python2.6/site-packages/Flask-0.7.2-py2.6.egg/flask/app.py", line 1047, in dispatch_request
            return self.view_functions[rule.endpoint](**req.view_args)
          File "/sagenb/sage_install/sage-4.7.1/devel/sagenb/flask_version/authentication.py", line 55, in login
            elif g.notebook.user_manager().check_password(username, password):
          File "/sagenb/sage_install/sage-4.7.1/devel/jasongrout-flask-sagenb/sagenb/notebook/user_manager.py", line 488, in check_password
            if user_password.find('$') == -1:
        exceptions.AttributeError: 'NoneType' object has no attribute 'find'

Original issue reported on code.google.com by jason-go...@creativetrax.com on 19 Oct 2011 at 4:12

GoogleCodeExporter commented 8 years ago
https://github.com/sagemath/sagenb/issues/278, if it's even relevant any more 
if people aren't using OpenID?

Original comment by kcris...@gmail.com on 3 Dec 2014 at 9:41