scp-dbus-service.py crashed with KeyError in get_notifications(): 'job-originating-user-name'

Bug #827573 reported by Immer AmLimit
598
This bug affects 64 people
Affects Status Importance Assigned to Milestone
system-config-printer (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Crash occured after sending a test page to a HP LJ1022n, attached via local network. Test page got printed anyway

System: Oeiric Ocelot 64bit with all updates as per Aug, 16th running on a Lenovo X200

ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: system-config-printer-common 1.3.5+20110801-0ubuntu2
ProcVersionSignature: Ubuntu 3.0.0-8.11-generic 3.0.1
Uname: Linux 3.0.0-8-generic x86_64
Architecture: amd64
Date: Tue Aug 16 20:32:55 2011
ExecutablePath: /usr/share/system-config-printer/scp-dbus-service.py
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110803.1)
InterpreterPath: /usr/bin/python2.7
Lpstat: device for HP-LaserJet-1022n: socket://10.13.1.20:9100
MachineType: LENOVO 7459FL5
PackageArchitecture: all
Papersize: a4
PpdFiles: HP-LaserJet-1022n: HP LaserJet 1022n Foomatic/foo2zjs-z1 (recommended)
ProcCmdline: /usr/bin/python /usr/share/system-config-printer/scp-dbus-service.py
ProcEnviron:
 PATH=(custom, no user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-8-generic root=UUID=0a99ed2c-1386-4122-af61-49669c69038e ro quiet splash vt.handoff=7
PythonArgs: ['/usr/share/system-config-printer/scp-dbus-service.py']
SourcePackage: system-config-printer
Title: scp-dbus-service.py crashed with KeyError in get_notifications(): 'job-originating-user-name'
Traceback:
 Traceback (most recent call last):
   File "/usr/share/system-config-printer/monitor.py", line 441, in get_notifications
     attrs['job-originating-user-name'] != cups.getUser ()):
 KeyError: 'job-originating-user-name'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 05/16/2011
dmi.bios.vendor: LENOVO
dmi.bios.version: 6DET70WW (3.20 )
dmi.board.name: 7459FL5
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr6DET70WW(3.20):bd05/16/2011:svnLENOVO:pn7459FL5:pvrThinkPadX200:rvnLENOVO:rn7459FL5:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 7459FL5
dmi.product.version: ThinkPad X200
dmi.sys.vendor: LENOVO

Revision history for this message
Immer AmLimit (immeramlimit) wrote :
tags: removed: need-duplicate-check
Changed in system-config-printer (Ubuntu):
status: New → Confirmed
visibility: private → public
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Will get fixed in the next release of the system-config-printer package.

Changed in system-config-printer (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Tim Waugh (twaugh) wrote :

The real question here is why that attribute is missing.

tags: added: bugpattern-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package system-config-printer - 1.3.6+20110824-0ubuntu1

---------------
system-config-printer (1.3.6+20110824-0ubuntu1) oneiric; urgency=low

  * New upstream bug fix release
     o GIT 1.3.x snapshot from 24 August 2011
     o State of 1.3.6
     o IPPAuthConnection: if semantic attribute is referenced after destroy,
       don't fail (LP: #828030).
     o Allow entering @,?,=,& characters in Device URI text field (LP: #826958).
  * debian/patches/25_fix-key-error-in-get-notifications-job-originating-user-name.patch:
    Fixed a KeyError crash in get_notifications() (LP: #827573).
  * debian/patches/27_update-properties-dialog-on-driver-change.patch:
    When changing the driver/PPD file ("Make and Model" on first tab of the
    printer properties dialog) the options tabs of the dialog did not get
    updated to the options of the new PPD file. One had to close the properties
    dialog and open it again to configure the settings of the new driver.
  * debian/patches/30_save-installable-options-changes-on-driver-change.patch:
    When changing the driver and the PPD of the new driver has an "Installable
    Options" group, the wizard shows a page to set these options. This patch
    makes the changes here actually being saved.
  * debian/patches/33_fix-bold-print-of-tab-labels-on-option-conflicts.patch:
    If there are conflicting option settings on the tabs "Printer Options"
    and/or "Installable Options" of the printer properties dialog, the tab
    names at the left of the dialogs should be shown in bold. This patch makes
    this working correctly in all situations, especially after changing the
    driver/PPD for a print queue.
 -- Till Kamppeter <email address hidden> Wed, 24 Aug 2011 16:53:24 +0200

Changed in system-config-printer (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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