[cups.bugs] [LOW] STR #2159: When CGIs output anything but text/html client browser does not get anything

Opher Shachar ophers at ladpc.co.il
Sun Dec 17 08:53:28 PST 2006


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

[STR New]

I created this plaintext.cgi file on two machines: one running CUPS 1.1.22
the other 1.2.7
(/etc/cups/cgi.types contains this single line: application/x-httpd-cgi
cgi)
---------------- plaintext.cgi start ----------------
#!/bin/sh
############################################
# This is a test shell script for CUPS
############################################
alias echo='echo -e'
echo 'Content-type: text/plain'
echo
echo 'This is a specially crafted plain text ducument.'
----------------  plaintext.cgi end  ----------------
It ran OK on CUPS 1.1.22 but NOT on 1.2.7 !!

On CUPS 1.2.7 the client browser waits and eventually times-out.
The same thing happens for application/postscript.

Cheers,
Opher Shachar.

Link: http://www.cups.org/str.php?L2159
Version: 1.2.7





More information about the cups mailing list