2014-09-27 16:47:39 |
Sean Davis |
description |
Ubuntu 14.04.1
mugshot version: 0.2.3-1
When I try to start mugshot via the "About Me" icon in the xfce4 settings panel, nothing seems to happen.
If I try to start it from a terminal it says:
devil:~$ mugshot
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/mugshot/MugshotWindow.py", line 252, in init_user_details
first_name, last_name = name.split(' ', 1)
UnboundLocalError: local variable 'name' referenced before assignment
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/mugshot", line 35, in <module>
mugshot.main()
File "/usr/lib/python3/dist-packages/mugshot/__init__.py", line 45, in main
window = MugshotWindow.MugshotWindow()
File "/usr/lib/python3/dist-packages/mugshot_lib/Window.py", line 50, in __new__
new_object.finish_initializing(builder)
File "/usr/lib/python3/dist-packages/mugshot/MugshotWindow.py", line 217, in finish_initializing
self.init_user_details()
File "/usr/lib/python3/dist-packages/mugshot/MugshotWindow.py", line 254, in init_user_details
first_name = name
UnboundLocalError: local variable 'name' referenced before assignment |
[Impact]
Because of incomplete logic for collecting user details, Mugshot < 0.2.5 may
fail to start for some users. As of version 0.2.5, user details are pulled
from several sources including LibreOffice, passwd, and GLib. In this way,
the following critical errors are avoided.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/mugshot/MugshotWindow.py", line 252, in init_user_details
first_name, last_name = name.split(' ', 1)
UnboundLocalError: local variable 'name' referenced before assignment
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/mugshot", line 35, in <module>
mugshot.main()
File "/usr/lib/python3/dist-packages/mugshot/__init__.py", line 45, in main
window = MugshotWindow.MugshotWindow()
File "/usr/lib/python3/dist-packages/mugshot_lib/Window.py", line 50, in __new__
new_object.finish_initializing(builder)
File "/usr/lib/python3/dist-packages/mugshot/MugshotWindow.py", line 217, in finish_initializing
self.init_user_details()
File "/usr/lib/python3/dist-packages/mugshot/MugshotWindow.py", line 254, in init_user_details
first_name = name
UnboundLocalError: local variable 'name' referenced before assignment
[Test Case]
If you have an LDAP-configured account...
1. Start Mugshot.
Otherwise...
1. Set your account name to "A".
2. Start Mugshot.
[Expected Results]
Mugshot should start successfully.
[Regression Potential]
None. This new release adds several safeguards to prevent future similar issues. |
|