Need better error message when encountering a bad network name

Bug #809076 reported by Eric Williams
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
system-config-printer (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I've tried to add a Windows 7 shared printer using the Browse functionality. This browser correctly is able to determine all of the computers in the work group and correctly lists all of the shared printers on the remote Windows 7 host. However, the share name of the network printer contained spaces. This led to a frustrating error message "Unable to connect to CIFS host...", which gave no indication of the real problem: the fact that the URI had be changed form "XXX XXX XXXXXXXX's XXX" to "XXX20XXX20XXXXXXX's20XXX", inserting "20" for spaces. As soon as I renamed remote printer's share name to something without spaces, the add process worked flawlessly. Had I not checked the URI after the browse functionality the third time trying to add this printer, I'd never have figured this out. Either warn on browsing that the shared printer's name is incompatible, add functionality to make it compatible, or warn afterwards with a better message.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: system-config-printer-gnome 1.3.1+20110222-0ubuntu16.3
ProcVersionSignature: Ubuntu 2.6.38-8.42-genusername 2.6.38.2
Uname: Linux 2.6.38-8-generic i686
Architecture: i386
Date: Mon Jul 11 20:06:51 2011
ExecutablePath: /usr/share/system-config-printer/system-config-printer.py
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
InterpreterPath: /usr/bin/python2.7
Lpstat:
 device for Deskjet-F300-series: hp:/usb/Deskjet_F300_series?serial=CN64OF71RS04KH
 device for HP-Deskjet-5100: smb://WORKGROUP/HOUSE-PC/HPDeskJet5150-Dad
MachineType: IEC PineTrail
PackageArchitecture: all
Papersize: letter
PpdFiles:
 HP-Deskjet-5100: HP Deskjet 5100, hpcups 3.11.1
 Deskjet-F300-series: HP Deskjet f300 Series, hpcups 3.11.1
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-8-genusername root=UUID=ef4285af-7ea3-4657-a419-8c8d2797f5c5 ro quiet splash vt.handoff=7
SourcePackage: system-config-printer
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 10/27/2010
dmi.bios.vendor: IEC
dmi.bios.version: 0.08
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: Base Board Product Name
dmi.board.vendor: IEC
dmi.board.version: Base Board Version
dmi.chassis.asset.tag: Chassis Asset Tag
dmi.chassis.type: 1
dmi.chassis.vendor: Chassis Manufacturer
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnIEC:bvr0.08:bd10/27/2010:svnIEC:pnPineTrail:pvr0.08:rvnIEC:rnBaseBoardProductName:rvrBaseBoardVersion:cvnChassisManufacturer:ct1:cvrChassisVersion:
dmi.product.name: PineTrail
dmi.product.version: 0.08
dmi.sys.vendor: IEC

Revision history for this message
Eric Williams (eric-williams-neu) wrote :
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Tim, can you have a look into this? Thanks.

I think there are already bug reports about support for share names with spaces (add "%20" in URIs, support for '%' and ' ' in input fields, ' ' <-> "%20" conversion, ...) but we should in addition take care of easy-to-understand error messages.

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

That error message does not come from system-config-printer.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : Re: [Bug 809076] Re: Need better error message when encountering a bad network name

Tim, is this a Samba or a CUPS problem then?

Tim, will you fix the issues of system-config-printer supporting Windows
printer share names with spaces?

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