Mugshot fails to launch after clearing all user info fields (name, initials, email, etc)

Bug #1394064 reported by flan_suse
36
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Mugshot
Fix Released
Undecided
Unassigned
mugshot (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

* Launch mugshot
* Clear out ALL the fields (First Name, Last Name, Initials, Email, etc)
* Attempt to launch mugshot again

It gives an error of: IndexError: string index out of range

The only way to fix this at the moment is to correct the mistake it made under /etc/passwd

I had to change the entry from this:

flansuse:x:1000:1000:,,none,none:/home/flansuse:/bin/bash

To this:

flansuse:x:1000:1000::/home/flansuse:/bin/bash

It appears Mugshot does not properly modify and read the /etc/passwd file if you clear ALL the fields (First Name, Last Name, Initials, Email, etc)

Distro: Xubuntu 14.04.1 LTS
Package: mugshot 0.2.5-0ubuntu0.1

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mugshot (Ubuntu):
status: New → Confirmed
Revision history for this message
Sean Davis (bluesabre) wrote :
Changed in mugshot:
status: New → Fix Committed
Sean Davis (bluesabre)
Changed in mugshot:
milestone: none → 0.3.1
Sean Davis (bluesabre)
Changed in mugshot:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mugshot - 0.3.1-0ubuntu1

---------------
mugshot (0.3.1-0ubuntu1) xenial; urgency=medium

  * New upstream bugfix release.
    - Fix: Failure in extracting details from /etc/passwd (LP: #1304920)
    - Fix: Failed reading of /etc/passwd with empty values (LP: #1394064)
    - Fix: Crash when ~/.face is empty or invalid (LP: #1400055)
    - Fix: Crash when unable to read LibreOffice config (LP: #1557744)
    - Fix: Incorrect handling of empty name fields (LP: #1559815)
  * debian/patches/01_disable-clutter-camera.patch
    - Added, clutter camera is broken in xenial
  * debian/rules
    - Drop depends on gstreamer1.0-tools

 -- Sean Davis <email address hidden> Thu, 31 Mar 2016 20:34:28 -0400

Changed in mugshot (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.