system-config-printer.py crashed with KeyError in quote()

Bug #447027 reported by zz
62
This bug affects 7 people
Affects Status Importance Assigned to Milestone
system-config-printer (Ubuntu)
Fix Released
Medium
Lars Karlitski

Bug Description

Binary package hint: system-config-printer

When press "forward" in Printer-manager

ProblemType: Crash
Architecture: i386
CheckboxSubmission: d9ec5921396a73419cbe62c31464ea4c
CheckboxSystem: 70c00b1f4fc04a9e44d7640c11387dfd
Date: Fri Oct 9 17:26:37 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/share/system-config-printer/system-config-printer.py
InterpreterPath: /usr/bin/python2.6
Lpstat: Error: command ['lpstat', '-v'] failed with exit code 1: lpstat: No destinations added.
MachineType: SAMSUNG ELECTRONICS CO., LTD. R59/R60/R61
Package: system-config-printer-gnome 1.1.12+git20090826-0ubuntu5
PackageArchitecture: all
Papersize: a4
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.31-12-generic root=UUID=782231d2-7ec6-4497-9d5e-985c9c99efb9 ro quiet splash
ProcCmdline: python /usr/share/system-config-printer/system-config-printer.py
ProcEnviron:
 LANGUAGE=en_US.UTF-8
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-12.41-generic
PythonArgs: ['/usr/share/system-config-printer/system-config-printer.py']
SourcePackage: system-config-printer
Title: system-config-printer.py crashed with KeyError in quote()
Uname: Linux 2.6.31-12-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
XsessionErrors:
 (gnome-settings-daemon:2043): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (polkit-gnome-authentication-agent-1:2180): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (nautilus:2139): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (gnome-panel:2137): Gdk-WARNING **: /build/buildd/gtk+2.0-2.18.2/gdk/x11/gdkdrawable-x11.c:952 drawable is not a pixmap or window
dmi.bios.date: 09/26/2008
dmi.bios.vendor: Phoenix Technologies LTD
dmi.bios.version: 09YI
dmi.board.name: R59/R60/R61
dmi.board.vendor: SAMSUNG ELECTRONICS CO., LTD.
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 1
dmi.chassis.vendor: SAMSUNG ELECTRONICS CO., LTD.
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnPhoenixTechnologiesLTD:bvr09YI:bd09/26/2008:svnSAMSUNGELECTRONICSCO.,LTD.:pnR59/R60/R61:pvr01YI:rvnSAMSUNGELECTRONICSCO.,LTD.:rnR59/R60/R61:rvr:cvnSAMSUNGELECTRONICSCO.,LTD.:ct1:cvrN/A:
dmi.product.name: R59/R60/R61
dmi.product.version: 01YI
dmi.sys.vendor: SAMSUNG ELECTRONICS CO., LTD.

Revision history for this message
zz (evgenyzh) wrote :
tags: removed: need-duplicate-check
visibility: private → public
Changed in system-config-printer (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Lars Karlitski (larsu) wrote :

This happens for url encoded smb uris that contain unicode. The attached patch makes sure that passed in uris are always converted to an utf-8 encoded string.

Changed in system-config-printer (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Lars Karlitski (larsu) wrote :

Till, can you please add this patch to the next s-c-p release in Ubuntu.

Where is s-c-p's upstream? Subscribing Tim Waugh, let's hope he sees this :)

Changed in system-config-printer (Ubuntu):
assignee: nobody → Lars Uebernickel (larsu)
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "ensure-utf8-smb-uris.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Tim Waugh (twaugh) wrote :

Thanks, applied upstream.

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

This bug was fixed in the package system-config-printer - 1.3.8+20120201-0ubuntu6

---------------
system-config-printer (1.3.8+20120201-0ubuntu6) precise; urgency=low

  * debian/patches/35_ensure-utf8-smb-uris.patch: Make sure that passed in
    URIs are always converted to an utf-8 encoded string (LP: #447027).
 -- Till Kamppeter <email address hidden> Thu, 22 Mar 2012 13:27:31 +0100

Changed in system-config-printer (Ubuntu):
status: In Progress → 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.