Found a bug.
Requesting a password for a nonexisting user - email combination will
lead to a 500 internal server error.
URL: https://publictest10.fedoraproject.org/accounts/user/sendpass
Output:
500 Internal error
The server encountered an unexpected condition which prevented it from
fulfilling the request.
Page handler: <bound method User.sendpass of <fas.user.User object at
0x119a0c10>>
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/cherrypy/_cphttptools.py",
line 121, in _run
self.main()
File "/usr/lib/python2.4/site-packages/cherrypy/_cphttptools.py",
line 264, in main
body = page_handler(*virtual_path, **self.params)
File "<string>", line 3, in sendpass
File "/usr/lib/python2.4/site-packages/turbogears/controllers.py",
line 361, in expose
output = database.run_with_transaction(
File "<string>", line 5, in run_with_transaction
File "/usr/lib/python2.4/site-packages/turbogears/database.py", line
405, in sa_rwt
retval = func(*args, **kw)
File "<string>", line 5, in _expose
File "/usr/lib/python2.4/site-packages/turbogears/controllers.py",
line 378, in <lambda>
mapping, fragment, args, kw)))
File "/usr/lib/python2.4/site-packages/turbogears/controllers.py",
line 405, in _execute_func
output = errorhandling.try_call(func, *args, **kw)
File "/usr/lib/python2.4/site-packages/turbogears/errorhandling.py",
line 72, in try_call
return func(self, *args, **kw)
File "/srv/fedora-infrastructure/fas/fas/user.py", line 373, in sendpass
person = People.by_username(username)
File "/srv/fedora-infrastructure/fas/fas/model.py", line 115, in
by_username
return cls.query.filter_by(username=username).one()
File "/usr/lib/python2.4/site-packages/sqlalchemy/orm/query.py", line
832, in one
raise exceptions.InvalidRequestError('No rows returned for one()')
InvalidRequestError: No rows returned for one()
Powered by CherryPy 2.3.0
_______________________________________________
Fedora-infrastructure-list mailing list
Fedora-infrastructure-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list