[SRU] Mugshot fails to expand user details
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mugshot |
Fix Released
|
High
|
Unassigned | ||
mugshot (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
New
|
Undecided
|
Unassigned |
Bug Description
[Impact]
For some users, Mugshot may fail to start because it was unable to expand
user details from /etc/passwd. This was fixed in the following revision,
in Mugshot 0.2.4:
https:/
This fix avoids the following fatal startup error.
Traceback (most recent call last):
File "/usr/bin/mugshot", line 35, in <module>
mugshot.main()
File "/usr/lib/
window = MugshotWindow.
File "/usr/lib/
new_
File "/usr/lib/
self.
File "/usr/lib/
name, office, office_phone, home_phone = details.split(',', 3)
ValueError: need more than 1 value to unpack
[Test Case]
1. Set your account name to "A".
2. Clear any other contact details from /etc/passwd (using chfn)
3. Start Mugshot.
[Expected Results]
Mugshot should start successfully.
[Regression Potential]
None. This release pads the account details so that this scenario is no longer possible.
Related branches
description: | updated |
Changed in mugshot: | |
importance: | Undecided → High |
Changed in mugshot: | |
milestone: | none → 0.2.4 |
Changed in mugshot: | |
status: | Fix Committed → Fix Released |
summary: |
- Mugshot doesn' start (Xubuntu 14.04) + [SRU] Mugshot fails to expand user details |
description: | updated |
Changed in mugshot (Ubuntu): | |
status: | New → Fix Released |
I've fixed this and will include it in the next release.