Incorrect assignment of "JobSheets" in printers.conf

Frank Mayer fmayer at gmx.de
Tue Jul 7 03:16:42 PDT 2009


Hi,
I am not an expert in cups and I am hoping to address the right people here.

Today I observed a strange behavior that every time I printed a banner-page "Classified" before and after content - although the settings of this printer (cups-pdf) were set to none.

Looking into the printers.conf - file in the /etc/cups - directory I found that my first printer (a Brother laser printer) has the setting "JobSheets classified classified". I removed the setting there and surprisingly cups-pdf didn't print the banner any more.

Changing "JobSheets" to "confidential confidential" in the settings of the BROTHER-printer(!) resulted in printing cups-pdf (my fourth printer) to print the "confdential"-banner (nothing changed in the cups-pdf-section, of course).

I assume, that this is an error in cups and that the settings of the first configuration in "printers.conf" is used for every following printer.

Maybe someone with programming-skills may have a look at it.

Kind regards,
Frank

System:
Ubuntu 9.04 (Jaunty, i686, nothing special)

/etc/cups/printers.conf follows (lines were wraped when I pasted them into the html-form, no idea why that early):

# Printer configuration file for CUPS v1.3.9
# Written by cupsd on 2009-07-07 11:22
<Printer HL5270>
Info BROTHER HL-5270DN BR-Script3
Location HL 5270 in Schulungsraum
DeviceURI socket://192.168.1.240:9100
State Idle
StateTime 1234518459
Accepting Yes
Shared Yes
JobSheets confidential confidential
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>
<Printer MibegKopierer>
Info GENERIC PCL 5e Printer
Location Im Gang
DeviceURI socket://192.168.1.13:9100
State Idle
StateTime 1234524579
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>
<Printer Oki_FarbLaser>
Info OKI (WehreGroup)
DeviceURI socket://192.168.2.97:9100
State Idle
StateTime 1210764948
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>
<DefaultPrinter PDF>
Info PDF
DeviceURI cups-pdf:/
State Idle
StateTime 1246958312
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>





More information about the cups-devel mailing list