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

Pierre Ossman noreply at cups.org
Fri Oct 3 05:39:16 PDT 2014


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

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

[STR New]

Up until CUPS 1.5.4 FINAL_CONTENT_TYPE contained the content type of the
data given to the backend filter. Somewhere between that version and 1.6.4
it instead started to always be set to printer/<queue name>. This of course
breaks backends that support multiple formats and need to know which one it
is they got.

I suspect it has something to do with this extra filter, that showed up in
the logs at the same time:

D [03/Oct/2014:14:21:14 +0200] [Job 17] - (application/pdf to
printer/thinlocal, cost 0)

So FINAL_CONTENT_TYPE is still being set to the final filter output format.
It's just that some extra implicit filter has been added that screws
everything up.

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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJULpj0AAoJENujp6sI12IjoFgQAJsYh1nk0nDrGytKBR60GEaw
ZjaucncIBxyQPBDstzxRZirDrLhWKrxv0KvOjbngJyHxinw4DDZyomWt/xE/lFTR
mVcJHY5aYK9GQnry8izlLhI6SEPccW+6Tv7CnEBHLuutzs3XQcGmYfFTtg11iDpt
tX0QJLCzjPkxBbtE8Vdx1bd/6Aep/9/R8aHCIMOpvtsTW5s6UVyqhr5Y3vdJggcl
mpBSSBrJsbc1PVXI15vdhH/Jn6dM8JyrKa0W88uZ0OWTfe1enKGW9TlpmP1R+77C
fTiJ/VeF7/p4rpDD5ZtGNGq35E11uC+zV3qiOj61nCG31veWEDsHeu0f24kt6s6t
fqJwJWL4aRUDyxkY2JV+fMCaFuJkd/hD+sgv0nAyW5fHvW4gn+iBErrx9nqfsODm
614CTPF3yDdHJOSg494gZySyRcFf35xlhlNc5c7hwWLaJOG1ndaPTVXOwzgD9i8X
Si2w1uxaLDklsJKQp1+fYaVElmEWMaVgedYsuOrSyzmnBBZA+aIcK+uLopxGSIK/
+/VofEM1kqQrAlejmcASNkbZB5n2k37W/e+QMvRNw/Kwgt8laKYV6ul7Z/rwVZzy
F20Za/R2fPzX0T2eP8hok2oCcUAVBSL/bDvlD5N0gKmjbpVvHQ4Fow36xLc7QCHq
qx6SqfgI0xnEZjzNqdaP
=/Tz0
-----END PGP SIGNATURE-----




More information about the cups mailing list