[cups-devel] [UNKN] STR #4593: cups.css file is detected on Linux as x-csource, not text/css

Alex Korobkin noreply at cups.org
Fri Feb 27 07:46:13 PST 2015


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

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

[STR New]

When i compile and install CUPS 2.0.2 on Ubuntu 12.04, its web interface is
broken because cups.css doesn't load. 

Browser says: The stylesheet https://printserver/cups.css was not loaded
because its MIME type, "application/x-csource", is not "text/css".

$ file -l /usr/share/cups/doc-root/cups.css 
<snip>
Text patterns:
Strength = 250 : Tenex C shell script text executable [text/x-shellscript]
Strength = 250 : new awk script text executable [text/x-nawk]
Strength = 250 : GNU awk script text executable [text/x-gawk]
Strength = 250 : Bourne-Again shell script text executable
[text/x-shellscript]

CUPS reports the same mime type in error log:
D [23/Feb/2015:18:31:07 +0000] [Client 48]
filename="/usr/share/cups/doc-root/cups.css", type=application/x-csource
D [23/Feb/2015:18:31:07 +0000] [Client 48] cupsdSendHeader: code=200,
type="application/x-csource", auth_type=0

Removing /* Layout CSS */ comment from the top of the cups.css file
workarounds the problem.

Link: https://www.cups.org/str.php?L4593
Version: 2.0.2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJU8JFFAAoJENujp6sI12IjL/AQAJ2ZoSGEfkqMwAp9u2p7ZIFe
cpNLIN2UEt3GopRxPnLFu8glNajRUvbveQ/nPcOY5eMEENtIhXZESS9gSUbWQvTL
TGXOMuL+br+m40ICBRgd70sUTyki1FjEWaWv4N8grw6CqTh8tMldSe2WgVFP4z1Q
LCYZL6qW6rX9hfjwJNlprNcuXP5VrNHPcf7QOuADh7FdB8a/BWJ8wFg8s6J6TWpP
oGd8506pDnbAserqPXgZdTCr7Hjp2X1KAfSjKy33lGsC1dsf8DgH3QMz8UtZkYfh
DmG8KIhr/yUe80qx61vOB6z3oXmJfzl0JCUrALovtyAVCK8Sb0FuoOEGK9wM+6jO
LOiLO5CJQ0GqdHpiTJiByvMmtjbHWYVYsdrpHlvsY8Hze2lwYxigUR2/ZI75mBj4
U9i/LL2fhUnouV7RXrbJcsdtiiVLFUxwbQkQnfzS/7girSbeNnk65g3eATio8Ieo
Un58ez3nI7KWAvyTk6z8lgfbyLVxNhNKWYUXQmwvMhiHDAS8ZuYXfewUAsM+ksPQ
eUzSyEtlRWnrsXjnoMhtM+0b69hM5XihoCqjsnIlDlUlulDenHRG99vqNThyqAZ3
c9Vg6J/NIAOou2zHqBP2RNqPOX8An1Q9KLP4BVyAScmVTgO7TYqv4yhp6eoMg7nl
QI6FpRdeMFaYbUDGbURU
=6Gqz
-----END PGP SIGNATURE-----




More information about the cups mailing list