[cups.bugs] [MOD] STR #2884: Deleting foo at bar@baz printer is impossible

martin.pitt.canonical martin.pitt at canonical.com
Mon Jul 21 04:12:31 PDT 2008


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Hi!

In our office we have a couple of cups-browsing announced network
printers, amongst those "mono at millbank". For some reason unknown to me
this was somehow duplicated as "mono at millbank@helen-x60".
(/etc/cups/printers.conf attached; this works with a default
cupsd.conf) Now this appears as one local printer, both with lpstat
and in the web interface:

$ lpstat -p
printer mono is idle.  enabled since Sat Jul 19 11:42:18 2008

Now try to delete the printer, by either using lpadmin or the web UI:

$ lpadmin -x mono

D [19/Jul/2008:11:45:16 +0100] cupsdAuthorize: Authorized as root using
Local
D [19/Jul/2008:11:45:16 +0100] CUPS-Delete-Printer
ipp://localhost/printers/mono
D [19/Jul/2008:11:45:16 +0100] cupsdIsAuthorized: username="root"
I [19/Jul/2008:11:45:16 +0100] Saving subscriptions.conf...
I [19/Jul/2008:11:45:16 +0100] Printer "mono" deleted by "root".
I [19/Jul/2008:11:45:16 +0100] Saving subscriptions.conf...
I [19/Jul/2008:11:45:16 +0100] Saving printers.conf...
D [19/Jul/2008:11:45:16 +0100] cupsdProcessIPPRequest: 14 status_code=0
(successful-ok)

"lpstat -p" is empty now, as is the printer list in the web UI. But
despite the debug log above, printers.conf isn't changed, it still has
both printers.

Thus after "/etc/init.d/cups reload" it is back:

D [19/Jul/2008:12:00:19 +0100] Loading printer mono at millbank...
D [19/Jul/2008:12:00:19 +0100] Loading printer mono at millbank@helen-x60...
D [19/Jul/2008:12:00:19 +0100] Added implicit class "mono"...


$ LC_ALL=C lpstat -p
printer mono is idle.  enabled since Sat Jul 19 12:00:19 2008

So cupsd gets horribly confused by these two: it treats them as one
printer, not two, with DeviceURI "file:///dev/null" (!), and it isn't
possible to delete the bogus "mono at millbank@helen-x60" printer.

Link: http://www.cups.org/str.php?L2884
Version: 1.3.7
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: printers.conf
URL: <https://lists.cups.org/pipermail/cups/attachments/20080721/e4240cd4/attachment.ksh>


More information about the cups mailing list