fedora-infra / fas

Fedora Account System
https://admin.fedoraproject.org/accounts
GNU General Public License v2.0
40 stars 50 forks source link

security question not working in fas2 new account create #98

Closed nirik closed 9 years ago

nirik commented 9 years ago

On creating a new account with a security question:

[Tue Dec 23 20:03:19 2014] [error] cherrypy.msg INFO HTTP: Page handler: <bound method User.create of <fas.user.U ser object at 0x7f5519c32810>> [Tue Dec 23 20:03:19 2014] [error] Traceback (most recent call last): [Tue Dec 23 20:03:19 2014] [error] File "/usr/lib/python2.6/site-packages/CherryPy-2.3.0-py2.6.egg/cherrypy/_cp httptools.py", line 121, in _run [Tue Dec 23 20:03:19 2014] [error] self.main() [Tue Dec 23 20:03:19 2014] [error] File "/usr/lib/python2.6/site-packages/CherryPy-2.3.0-py2.6.egg/cherrypy/_cp httptools.py", line 264, in main [Tue Dec 23 20:03:19 2014] [error] body = page_handler(_virtual_path, _self.params) [Tue Dec 23 20:03:19 2014] [error] File "", line 3, in create [Tue Dec 23 20:03:19 2014] [error] File "/usr/lib/python2.6/site-packages/turbogears/controllers.py", line 361, in expose [Tue Dec 23 20:03:19 2014] [error] _args, _kw) [Tue Dec 23 20:03:19 2014] [error] File "", line 0, in run_with_transaction [Tue Dec 23 20:03:19 2014] [error] File "/usr/lib/python2.6/site-packages/peak/rules/core.py", line 153, in c all [Tue Dec 23 20:03:19 2014] [error] return self.body(_args, _kw) [Tue Dec 23 20:03:19 2014] [error] File "/usr/lib/python2.6/site-packages/turbogears/database.py", line 458, in sa_rwt [Tue Dec 23 20:03:19 2014] [error] retval = func(_args, _kw) [Tue Dec 23 20:03:19 2014] [error] File "/usr/lib/python2.6/site-packages/turbogears/controllers.py", line 244, in _expose [Tue Dec 23 20:03:19 2014] [error] @abstract() [Tue Dec 23 20:03:19 2014] [error] File "", line 0, in _expose [Tue Dec 23 20:03:19 2014] [error] File "/usr/lib/python2.6/site-packages/peak/rules/core.py", line 153, in c all [Tue Dec 23 20:03:19 2014] [error] return self.body(_args, _kw) [Tue Dec 23 20:03:19 2014] [error] File "/usr/lib/python2.6/site-packages/turbogears/controllers.py", line 390, in [Tue Dec 23 20:03:19 2014] [error] fragment, options, args, kw))) [Tue Dec 23 20:03:19 2014] [error] File "/usr/lib/python2.6/site-packages/turbogears/controllers.py", line 425, in _execute_func [Tue Dec 23 20:03:19 2014] [error] output = errorhandling.try_call(func, _args, _kw) [Tue Dec 23 20:03:19 2014] [error] File "/usr/lib/python2.6/site-packages/turbogears/errorhandling.py", line 77, in try_call [Tue Dec 23 20:03:19 2014] [error] return func(self, _args, _kw) [Tue Dec 23 20:03:19 2014] [error] File "", line 3, in create [Tue Dec 23 20:03:19 2014] [error] File "/usr/lib/python2.6/site-packages/turbogears/controllers.py", line 207, in validate [Tue Dec 23 20:03:19 2014] [error] return errorhandling.run_with_errors(errors, func, _args, _kw) [Tue Dec 23 20:03:19 2014] [error] File "/usr/lib/python2.6/site-packages/turbogears/errorhandling.py", line 118, in run_with_errors [Tue Dec 23 20:03:19 2014] [error] return func(self, _args, *_kw) [Tue Dec 23 20:03:19 2014] [error] File "/usr/lib/python2.6/site-packages/fas/user.py", line 959, in create [Tue Dec 23 20:03:19 2014] [error] telephone, postal_address, age_check) [Tue Dec 23 20:03:19 2014] [error] File "/usr/lib/python2.6/site-packages/fas/user.py", line 1014, in create_user [Tue Dec 23 20:03:19 2014] [error] person.security_answer = encrypt_text(config.get('key_securityquestion'), security_answer) [Tue Dec 23 20:03:19 2014] [error] File "/usr/lib/python2.6/site-packages/fas/lib/gpg.py", line 28, in encrypt_text [Tue Dec 23 20:03:19 2014] [error] recipient = ctx.get_key(receiver) [Tue Dec 23 20:03:19 2014] [error] GpgmeError: (7, 16383, u'End of file') [Tue Dec 23 20:03:19 2014] [error]

puiterwijk commented 9 years ago

This was an SELinux issue.

puiterwijk commented 9 years ago

on-list reply: https://lists.fedoraproject.org/pipermail/infrastructure/2014-December/015369.html