#239 saving default settings on openid provider confguration page /idp/admin/providers/openid results into non working configuration
Opened 7 years ago by kordex. Modified 7 years ago

when i save the openid settings on the openid page i get 500
After save None appears to default email domain which causes following error to trigger:

< puiterwijk> (this is a simple fix, it's _username instead of username)

[Mon Dec 26 20:05:51.703643 2016] [wsgi:error] [pid 5852] [26/Dec/2016:20:05:51] HTTP Traceback (most recent call last):
[Mon Dec 26 20:05:51.703663 2016] [wsgi:error] [pid 5852] File "/usr/lib/python2.7/site-packages/cherrypy/_cprequest.py", line 670, in respond
[Mon Dec 26 20:05:51.703670 2016] [wsgi:error] [pid 5852] response.body = self.handler()
[Mon Dec 26 20:05:51.703675 2016] [wsgi:error] [pid 5852] File "/usr/lib/python2.7/site-packages/cherrypy/lib/encoding.py", line 217, in call
[Mon Dec 26 20:05:51.703681 2016] [wsgi:error] [pid 5852] self.body = self.oldhandler(args, kwargs)
[Mon Dec 26 20:05:51.703686 2016] [wsgi:error] [pid 5852] File "/usr/lib/python2.7/site-packages/cherrypy/_cpdispatch.py", line 61, in call
[Mon Dec 26 20:05:51.703692 2016] [wsgi:error] [pid 5852] return self.callable(*self.args,
self.kwargs)
[Mon Dec 26 20:05:51.703697 2016] [wsgi:error] [pid 5852] File "/usr/lib/python2.7/site-packages/ipsilon/util/page.py", line 91, in call
[Mon Dec 26 20:05:51.703703 2016] [wsgi:error] [pid 5852] return op(
args, kwargs)
[Mon Dec 26 20:05:51.703708 2016] [wsgi:error] [pid 5852] File "/usr/lib/python2.7/site-packages/ipsilon/providers/common.py", line 94, in root
[Mon Dec 26 20:05:51.703714 2016] [wsgi:error] [pid 5852] return op(*args,
kwargs)
[Mon Dec 26 20:05:51.703719 2016] [wsgi:error] [pid 5852] File "/usr/lib/python2.7/site-packages/ipsilon/providers/openid/auth.py", line 274, in POST
[Mon Dec 26 20:05:51.703725 2016] [wsgi:error] [pid 5852] return self.auth(kwargs)
[Mon Dec 26 20:05:51.703744 2016] [wsgi:error] [pid 5852] File "/usr/lib/python2.7/site-packages/ipsilon/providers/openid/auth.py", line 57, in auth
[Mon Dec 26 20:05:51.703751 2016] [wsgi:error] [pid 5852] return self._openid_checks(request, form,
kwargs)
[Mon Dec 26 20:05:51.703757 2016] [wsgi:error] [pid 5852] File "/usr/lib/python2.7/site-packages/ipsilon/providers/openid/auth.py", line 150, in _openid_checks
[Mon Dec 26 20:05:51.703762 2016] [wsgi:error] [pid 5852] return self._respond(self._response(request, us))
[Mon Dec 26 20:05:51.703767 2016] [wsgi:error] [pid 5852] File "/usr/lib/python2.7/site-packages/ipsilon/providers/openid/auth.py", line 209, in _response
[Mon Dec 26 20:05:51.703773 2016] [wsgi:error] [pid 5852] userattrs = self._source_attributes(session)
[Mon Dec 26 20:05:51.703778 2016] [wsgi:error] [pid 5852] File "/usr/lib/python2.7/site-packages/ipsilon/providers/openid/auth.py", line 71, in _source_attributes
[Mon Dec 26 20:05:51.703784 2016] [wsgi:error] [pid 5852] userattrs['email'] = '%s@%s' % (userattrs['username'],
[Mon Dec 26 20:05:51.703789 2016] [wsgi:error] [pid 5852] KeyError: 'username'


Metadata Update from @kordex:
- Issue assigned to puiterwijk

7 years ago

Log in to comment on this ticket.

Metadata