** Summary changed:
- mugshot produces python errors
+ [SRU] Mugshot fails to start for some users
** Description changed:
- Ubuntu 14.04.1
- mugshot version: 0.2.3-1
+ [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.
- 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
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.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1353530
Title:
[SRU] Mugshot fails to start for some users
To manage notifications about this bug go to:
https://bugs.launchpad.net/mugshot/+bug/1353530/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs