Bug 59734

Summary: No such map printers.conf.byname.
Product: [Applications] kdeprint Reporter: NathanSmith_2003
Component: generalAssignee: KDEPrint Devel Mailinglist <kde-print-devel>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: jlayt
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description NathanSmith_2003 2003-06-13 18:17:07 UTC
Version:            (using KDE KDE 3.1.2)
Installed from:    Compiled From Sources
Compiler:          gcc 2.96 
OS:          Linux

Bug:

Starting with (in my experience) kde 3.1, when printing, the warning message: "No such map printers.conf.byname. Reason: No such map in server's domain" is displayed. This is related to NIS. In kdelibs-3.1.2/kdeprint/lpdunix/kmlpdunixmanager.cpp:getEtcPrintersConfName(), a ypcat command is issued "ypcat printers.conf.byname > %1" to read the printer configuration file stored on the NIS server. However, for networks where the NIS server does not contain a printers.conf.byname file, ypcat will produce the above error and send it to stderr.

How it exhibits itself:

This is normally not a problem. However, when printing from some applications, such as acroread, they pick up this message as an error in printing and display a warning message box. The printing usually procedes without problem but this leaves a somewhat lacking user experience.

Solution?:

A simple solution is to change the command to "ypcat printers.conf.byname > %1 2>&1" which will send both stdout and stderr to the %1 sink. Parsing of the return may be required to determine whether or not printers.conf was actually successfully retrieved.
Comment 1 Cristian Tibirna 2005-08-22 21:54:03 UTC
UNCONFIRMED (batch reassigning messed this)
Comment 2 John Layt 2011-05-27 17:45:59 UTC
KDEPrint is obsolete, unmaintained and will never be revived.  Closing all open bugs.