[cups-devel] [UNKN] STR #4494: FINAL_CONTENT_TYPE incorrectly always set to printer/*

Tim Waugh noreply at cups.org
Tue Nov 18 06:38:25 PST 2014


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

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

[STR Resolved]

So, the reason we'd been using that patch was to deal with the situation
where a client CUPS server (A) sends a job to a remote CUPS server (B), but
both A and B have the same PPD configured for their queues... and that's a
foomatic PPD.

In this situation, the PPD has e.g.:

*cupsFilter: "application/vnd.cups-pdf 0 foomatic-rip"

and so FINAL_CONTENT_TYPE, the "MIME type associated with the printer", is
set to application/vnd.cups-pdf. Of course, that's not at all what the ipp
backend on A receives: it receives data ready for the printer.

However, it sends document-format="$FINAL_CONTENT_TYPE" to CUPS server B
which promptly fails the job as it is invalid PDF.

We no longer apply that patch in Fedora, and bug reports are coming in
about setups that have Foomatic PPDs configured on both ends of a remote
queue.

Pierre is quite right in stating the problem as:
"No environment variable contains the actual format, so right now backends
have to resort to trying to figure out the type from the content, which is
less than ideal."

Link: https://www.cups.org/str.php?L4494
Version: 1.7.4
Fix Version: Third-party
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJUa1nhAAoJENujp6sI12IjteYP+wWrbCk4j4mtxf6g0DbzVzNh
wInL/xBVSrLqblsY2oa91aK0HAsykKo2kxjvYbGVVz98HOHcf+CeVgUFqpIy1ZG4
DwMBG0xVOVbCKzlkWGMaVt7G88Y+dRR/6aG5gbw1y2zMGrHFn01Xgn0v1mzo+9x7
lusGl3jKwHpLKndYKoulhZSCnbIlQu2pda7Xy06TX/Qu+lyzqAro2B9VngklGzV6
gd5Dj+Lr1yOVe6kFqsJjx1U5tWPYCMEqitl2bF6FfQ2QXy/AbSfFxMce4/eoTZa1
DBoqC84LGxUJO9BbKOdvNsjqMbJ/MSoZSppwkcAWamaHC3OgpEpq3L5OkQEN1HRN
/UxgzNegZRxxt5iYkVT1ugBb9ifeiPtIGy88yy8qqkO46O6Ep9OIuW9u2YlL1TVI
kn+mW8VQ5EstZwApI/JIrPch6KWjwLtszct2wi5R3WotQmIL4c7k8dtuwHVZeGOg
FpOwh6WL8h/svvpVi57Hpt6+1v5Vuul4s0LXrgOD6bYnWEOtov88Qzd53dUxpsfw
vdMO+uOvzWzPs2PXlA+TnLewrb3qQsE8M3uZ5NmY3r+pKvck/bUzUr7G/uQ8R+5Y
0t8/NVdCkXPTzJCiuCcyR8KsANNSivm0jP28M67oe/iIeONXs/BPJ/pO64QsYviP
MbngUW++0+eGzlQc6Eb3
=UsXM
-----END PGP SIGNATURE-----




More information about the cups mailing list