[cups-devel] [UNKN] STR #4717: "lpoptions -l" for instance displays values from main instance

Michael Weghorn noreply at cups.org
Tue Sep 15 05:32:58 PDT 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

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

[STR New]

The section on printer instances in the CUPS documentation (section
"Creating Saved Options" in [1]) says:
"Instances do not inherit lpoptions from the main queue."

I tried sending a print job to the instance and as far as I can see, the
values specified for the main queue are not applied (which is the expected
behaviour).

However, the output of `lpoptions -p <printername>/<instancename> -l` does
show values set for the main queue for the instance as well. If I
understand the documentation correctly, this is incorrect.


Steps to reproduce (I ran them on Debian GNU/Linux):

1) set up a printer with the attached PPD file, e.g. print to a file
(cups-files.conf must contain "FileDevice Yes" in that case).
sudo lpadmin -p testprinter -v file:$HOME/tofile-testprinter -E -P
Ricoh-MP_C3503-pxlcolor-Ricoh.ppd

2) create a printer instance "testprinter/myinstance":
lpoptions -p testprinter/myinstance -o Resolution=1200dpi

3) check value of PageSize returned from "lpoptions" for the instance:
lpoptions -p testprinter/myinstance -l | grep PageSize

output:
PageSize/PageSize: A3 A4 A5 A6 B4 B5 B6 Legal GovernmentLG EngQuatro
*Letter Statement F Folio FanFoldGermanLegal Tabloid 12x18 11x15 10x14 SRA3
SRA4 Executive Env10 EnvMonarch EnvC5 EnvC6 DLEnv 8Kai 16Kai

The PageSize is "Letter" as specified in the PPD file (as expected).

4) change PageSize for the main queue:
lpoptions -p testprinter -o PageSize=A3

5) check value of PageSize returned from "lpoptions" for the instance:
lpoptions -p testprinter/myinstance -l | grep PageSize

output:
PageSize/PageSize: *A3 A4 A5 A6 B4 B5 B6 Legal GovernmentLG EngQuatro
Letter Statement F Folio FanFoldGermanLegal Tabloid 12x18 11x15 10x14 SRA3
SRA4 Executive Env10 EnvMonarch EnvC5 EnvC6 DLEnv 8Kai 16Kai

The PageSize is "A3" as specified for the main instance "testprinter".



Expected behaviour:
The value for the "PageSize" option for the printer instance
"testprinter/myinstance" should not be affected by the main instance
"testprinter" and should therefore still be "Letter".


I have tested this on Debian 8 ("jessie") with the preinstalled CUPS
version (1.7.5) and on Debian unstable with version 2.1.0.

[1] http://cups.org/documentation.php/doc-2.1/options.html

Link: https://www.cups.org/str.php?L4717
Version: 2.1.0
Attachment: https://www.cups.org/strfiles.php/3571/Ricoh-MP_C3503-pxlcolor-Ricoh.ppd
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJV+A/6AAoJENujp6sI12Ij4y8P/j/6LI7f4uuVXHkKp101BWzI
vbEKJRWKjg6txO/tnzxX95nLcqckKkRXiW/6CPLBYBic224HefwYOPOG/TXvm/eA
QM4A2beCx4Xjd8SsO+No1u3wqrG+11ZkUNmOAMFE+MUXFG6KCYxnsKC6d4V58iVx
JKwwtb13HhB4Sa+hQD3p67I95zR7mHk2U/fsMNKu/QuDNZSi45ZbvxCdSuS4CHVf
hp8xi5fj9eFJdb2gMwtKCoSYo5ccCrs51ksXLW2ejb7WEswrduyNRI6hFbeMynd+
Dkp39W06uIVLOuvUDGzwcrHSCvZPW9qRVly62e1Ijz4dbPUQybAvbEJYZx0TrKMF
RWhKtUD9haK2+n6744l7/KU0FU27vZ/ywQLXa7ZFHXEPZ9T/OHkZDdVl4/Q/wNdR
rAPEyQoPXqUcVArvTvYeMg6HQxq17m/vd2hKoO8JuJJWcL06nTrcnXlST9LNUDvY
ISl/2cMXuTxL9BxPAhO3CKVpkywalpqkd6ue2KnpYpYCIxx+B7uF+4ebSX5rhAN9
xccl8LS6shbfYAMdIYedLTiebbwVoHz053rW1kQC/9fy5GA4gUwNjrggmP792S4/
PLDqU0sQtXvI6RXUiwfF+YgqYni4Te6uolt8D2+XqIXJXAB6Fl03sHhIjQjUkUWX
n6DoH0N8N8i3FyYdSOce
=tEk7
-----END PGP SIGNATURE-----




More information about the cups mailing list