[cups-devel] [MOD] STR #4725: cupsGetPPD3() function of CUPS library tries to load PPD from IPP printer and not from the CUPS queue

Till Kamppeter noreply at cups.org
Sat Oct 3 15:02:34 PDT 2015


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

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

[STR New]

I have found out what the problem here is and I have a (simple) fix for it
(patch attached).

The problem was that cupsGetPPD3() uses cups_get_printer_uri() (also in
cups/util.c) to determine the printer URI but cups_get_printer_uri() has a
bug that it considers all ipp://... and ipps://... queues as pointing to a
remote CUPS queue and therefore returns the device URI for the PPD being
loaded from the remote CUPS server. If the ipp(s)://... printer is a native
IPP printer (or IPP-over-USB) this naturally not works.

The patch corrects the determination whether a queue is a remote CUPS
queue. With the patch applied the problem goes away. system-config-printer
opens the properties dialogs for all types of queues immediately with all
PPD options and the print dialog of Chromium Browser also opens immediately
and shows the PPD options of all queues.

Link: https://www.cups.org/str.php?L4725
Version: 2.1.0
Attachment: https://www.cups.org/strfiles.php/3576/fix-ppd-file-load-for-ipp-printers.patch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJWEFB5AAoJENujp6sI12IjqroP/1cuvWr8qslI31wxfESv/UjI
zBEtcdJh9QAwavVyoG/NiYQR7x4pAAdVEwWcUrF+12dNPTqc0LuPxMn8z9u3JXfs
/Wklb9Ar4qYKgvC+EtY3Q5Bg9UeLqYK3d5dQA4W4iRW0Jf6awM60/uCOTsLPyJuu
oTRd+F+zSTgN7w1zsCTq7JXtBrPeVYxLClNmr1y+GO28ZvHMZ+G4s3pug+G7ZLnZ
bb5g7VWgYVyti8d6pAISePDlYjx5Y04QDnjK/GPYPwtSgH9+65hBnF9vE7PDhTOB
pTmf4/AHYq0YcIRRFY2Y29TUNWx159m15hNIPnDoeuFNBADMdWuYxKAV+gACfjJQ
ZOpdS16Q+2eJZ/KzT/hYg/8QY2Et+qBzfQ7+zww7NMqHPaPjZuRVU/HNc/eU/wPW
tZf+q2pWntAiDDNqgnzQX+EQR6MoYlIGUjyNm6W712yF45wLmX0L3cnGfzaR9Yqn
eoIKn0bkVqRXKfuvhK+YslVkNmW3/VoVZZIfRObseyP28UZVC9looM4C9LFkWjRM
VchzCXUz3Og8cjCbOPRqNAzq5QTsofmtDte3G2q0hoAovD8C40d9BsZzz/b0ohfu
J8bzK7OJosBu/S/g6aYSqv4zh78ulh8zEoiv4fX5jnzOFfxRWBme75zWHENzxIwO
YDCSTYN6oVd0j4QxveEu
=rHB1
-----END PGP SIGNATURE-----




More information about the cups mailing list