If you try to change your password for a user after logging in and waiting for a period of time, FAS3 crashes with the following message:
2017-01-27 11:33:00,740 ERROR [waitress:10045][waitress:channel][service:341] Exception when serving /people/profile/1525/edit/password
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/waitress/channel.py", line 338, in service
task.service()
File "/usr/lib/python2.7/site-packages/waitress/task.py", line 169, in service
self.execute()
File "/usr/lib/python2.7/site-packages/waitress/task.py", line 399, in execute
app_iter = self.channel.server.application(env, start_response)
File "/usr/lib/python2.7/site-packages/pyramid/router.py", line 233, in __call__
response = self.invoke_subrequest(request, use_tweens=True)
File "/usr/lib/python2.7/site-packages/pyramid/router.py", line 208, in invoke_subrequest
response = handle_request(request)
File "/usr/lib/python2.7/site-packages/pyramid_debugtoolbar/toolbar.py", line 187, in toolbar_tween
return handler(request)
File "/usr/lib/python2.7/site-packages/pyramid/tweens.py", line 62, in excview_tween
reraise(*attrs['exc_info'])
File "/usr/lib/python2.7/site-packages/pyramid/tweens.py", line 22, in excview_tween
response = handler(request)
File "/usr/lib/python2.7/site-packages/pyramid_tm/__init__.py", line 119, in tm_tween
reraise(*exc_info)
File "/usr/lib/python2.7/site-packages/pyramid_tm/__init__.py", line 98, in tm_tween
response = handler(request)
File "/usr/lib/python2.7/site-packages/pyramid/router.py", line 155, in handle_request
view_name
File "/usr/lib/python2.7/site-packages/pyramid/view.py", line 612, in _call_view
response = view_callable(context, request)
File "/usr/lib/python2.7/site-packages/pyramid/viewderivers.py", line 300, in secured_view
return view(context, request)
File "/usr/lib/python2.7/site-packages/pyramid/viewderivers.py", line 438, in rendered_view
result = view(context, request)
File "/usr/lib/python2.7/site-packages/pyramid/viewderivers.py", line 123, in _class_requestonly_view
response = getattr(inst, attr)()
File "/vagrant/fas/views/people.py", line 436, in update_password
self.notify(PasswordChangeRequested(self.request, self.person))
File "/usr/lib/python2.7/site-packages/pyramid/registry.py", line 110, in notify
[ _ for _ in self.subscribers(events, None) ]
File "/usr/lib64/python2.7/site-packages/zope/interface/registry.py", line 442, in subscribers
return self.adapters.subscribers(objects, provided)
File "/usr/lib64/python2.7/site-packages/zope/interface/adapter.py", line 598, in subscribers
subscription(*objects)
File "/usr/lib/python2.7/site-packages/pyramid/config/adapters.py", line 103, in derived_subscriber
return subscriber(arg[0])
File "/vagrant/fas/subscribers/people.py", line 50, in on_password_change_requested
raise redirect_to('/login?redirect=%s' % event.request.url)
TypeError: redirect_to() takes exactly 2 arguments (1 given)
Steps to reproduce
Log into an account
wait longer than the minutes specified in the user.security_change.timeout setting in the ini file
If you try to change your password for a user after logging in and waiting for a period of time, FAS3 crashes with the following message:
Steps to reproduce
user.security_change.timeout
setting in the ini file