Red Hat Bugzilla – Bug 118540
lpadmin doesn't complain when provided bogus ppd file
Last modified: 2007-11-30 17:07:00 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040204
Description of problem:
This command should throw an error:
/usr/sbin/lpadmin -p kprinter -v <whatever> -D "Kprinter GUI" -E -L
<whatever> -m xyz123
There is no ppd description file called xyz123, yet the printer entry
is still created in CUPS' printer.conf file. However, there is no
corresponding ppd file created in /etc/cups/ppd.
This causes GNOME to say, whenever bringing up a GNOME print window:
"GnomePrintCupsPlugin-WARNING **: The CUPS printer kprinter could not
Model not found, discarding config"
lpadmin should complain about xyz123 not being found, instead of
silently mis-configuring cups by only providing a partially correct setup.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Command giving above
Any progress on this? This shouldn't be too hard to fix
This works correctly (i.e. gives an error) with cups-1.1.20, as found
in Fedora Core 2. This fix will be included in a future version of
Red Hat Enterprise Linux.
Thanks for your report.