Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93972 - cups-1.1.23-r3 answers tcp:631 with Content-Type: text/plain, killing the web interface
Summary: cups-1.1.23-r3 answers tcp:631 with Content-Type: text/plain, killing the web...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Printing Team
URL: http://localhost:631/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-25 10:36 UTC by Ole Craig
Modified: 2005-06-05 07:24 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
packet captures in libpcap format (cupsd-raw-conversation.pcap,6.97 KB, application/octet-stream)
2005-05-25 10:43 UTC, Ole Craig
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ole Craig 2005-05-25 10:36:58 UTC
Possible upstream? 

Connecting to http://localhost:631/ with a browser should put me into the CUPS
web interface, but instead I see html source. This occurs because cupsd responds
to the HTTP GET with headers that include "content-type: text/plain" instead of
the expected "text/html". I've pasted an ethereal capture of the conversation.

This was functional the last time I added a printer, but I can't say for sure
what version of cups that was (I update pretty regularly; it was somewhere in
the vicinity of 2-3 weeks ago.)

Reproducible: Always
Steps to Reproduce:
1. emerge cups
2. firefox http://localhost:631/
3.

Actual Results:  
raw html source presented as ASCII

Expected Results:  
loaded the CUPS web interface as html

conversation snapshot, courtesy of tcpdump and ethereal:
GET / HTTP/1.1

Host: localhost:631

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050518
Firefox/1.0.4

Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5

Accept-Language: en-us,en;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 300

Connection: keep-alive



HTTP/1.1 200 OK

Date: Wed, 25 May 2005 17:18:52 GMT

Server: CUPS/1.1

Connection: Keep-Alive

Keep-Alive: timeout=60

Content-Language: en_US

Content-Type: text/plain; charset=utf-8

Last-Modified: Mon, 23 May 2005 15:44:56 GMT

Content-Length: 1604



<HTML>
<HEAD>
.<TITLE>Common UNIX Printing System</TITLE>
.<LINK REL=STYLESHEET TYPE="text/css" HREF="cups.css">
.<MAP NAME="navbar">
..<AREA SHAPE="RECT" COORDS="12,10,50,20" HREF="http://www.easysw.com" ALT="Easy
Software Products Home Page">
..<AREA SHAPE="RECT" COORDS="82,10,196,20" HREF="/admin" ALT="Do Administration
Tasks">
..<AREA SHAPE="RECT" COORDS="216,10,280,20" HREF="/classes" ALT="Manage Printer
Classes Status">
..<AREA SHAPE="RECT" COORDS="300,10,336,20" HREF="/documentation.html"
ALT="On-Line Help">
..<AREA SHAPE="RECT" COORDS="356,10,394,20" HREF="/jobs" ALT="Manage Jobs">
..<AREA SHAPE="RECT" COORDS="414,10,476,20" HREF="/printers" ALT="Manage Printers">
..<AREA SHAPE="RECT" COORDS="496,10,568,20" HREF="http://www.cups.org"
ALT="Download the Current CUPS Software">
        </MAP>
</HEAD>

<BODY BGCOLOR="#cccc99" TEXT="#000000" LINK="#0000FF" VLINK="#FF00FF">
<CENTER>
<IMG SRC="/images/navbar.gif" WIDTH="583" HEIGHT="30" USEMAP="#navbar"
BORDER="0" ALT="Common UNIX Printing System">
</CENTER>

<H1><A HREF="admin">Do Administration Tasks</A></H1>
<H1><A HREF="classes">Manage Printer Classes</A></H1>
<H1><A HREF="documentation.html">On-Line Help</A></H1>
<H1><A HREF="jobs">Manage Jobs</A></H1>
<H1><A HREF="printers">Manage Printers</A></H1>
<H1><A HREF="http://www.cups.org">Download the Current CUPS Software</A></H1>

<HR>

<P>The Common UNIX Printing System, CUPS, and the CUPS logo are the
trademark property of <A HREF="http://www.easysw.com">Easy Software
Products</A>. CUPS is copyright 1997-2005 by Easy Software Products,
All Rights Reserved.

</BODY>
</HTML>

===============================================================================
ook # epm -q cups
cups-1.1.23-r3
ook # emerge --info
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110,
glibc-2.3.5-r0, 2.6.11-gentoo-r9 i686)
=================================================================
System uname: 2.6.11-gentoo-r9 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c
/etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.averse.net/pub/gentoo/ http://gentoo.ccccom.com
http://gentoo.osuosl.org/ ftp://mirrors.tds.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52dec aac aalib acl acpi acpi4linux aim alsa apache2 apm arts
artworkextra audiofile avi bash-completion berkdb bitmap-fonts bonobo bzlib cddb
cdparanoia cdr codecs crypt ctype cups curl curlwrappers dba dga dio directfb
divx4linux doc dri dvb dvd dvdr dvdread dxr3 eds emacs emboss encode esd
ethereal exif faac faad fam fame fbcon ffmpeg fftw flac flash font-server
foomaticdb fortran freetype ftp gcj gd gdbm ggi gif gimp gimpprint glut glx
gnome gnomedb gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal icq
imagemagick imlib insecure-drivers ipv6 jabber jack java jikes joystick jpeg
jpeg2k junit kerberos ladcca lcms ldap libg++ libwww mad mikmod ming mitshm
mjpeg mmap mmx mng motif mozilla mozp3p mozsvg mp3 mpeg mpeg4 mpi mplayer msn
mysql nas ncurses nls nptl odbc ofx ogg oggvorbis openal opengl oscar oss pam
pcmcia pcntl pcre pda pdflib perl php pic pie png pnp posix ppds python qt
quicktime readline samba scanner sdl session shared sharedmem simplexml slang
slp sndfile snmp soap sockets sox spell sse ssl svg svga sysvipc tcltk tcpd
tetex theora tiff truetype truetype-fonts trusted type1-fonts usb v4l v4l2
videos vorbis wmf wxwindows xanim xine xml xml2 xmlrpc xmms xosd xpm
xscreensaver xsl xv xvid xvmc yahoo yv12 zlib video_cards_savage userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Ole Craig 2005-05-25 10:43:53 UTC
Created attachment 59803 [details]
packet captures in libpcap format

raw packet trace in libpcap format, for your tcpslicing pleasure.
Comment 2 Phil Richards 2005-05-27 09:36:28 UTC
Yep, same problem here.  Pages are being served as plain/text, causing mozilla,
firefox, epiphany and lynx to refuse to render them.

Web administration interface is now completely unusable.
Comment 3 Ole Craig 2005-05-27 09:57:24 UTC
NB: backing off to -r2 ("emerge =cups-1.1.23-r2") makes the problem go away.
Comment 4 John Youells 2005-05-28 17:52:58 UTC
Backing off to -r2 ("emerge =cups-1.1.23-r2") did NOT fix this problem for me.
Comment 5 Phil Richards 2005-05-29 01:06:19 UTC
Funnily enough, it did work for me.
But, looking at the difference in the ebuilds, I have no idea why it should...

I've just tried r3 again and it appears to be working for me now.
Has the ebuild been changed since the last time, I wonder?
(No way of checking here.)

Phil
Comment 6 Carl A. Dunham 2005-05-29 08:29:44 UTC
It looks like something zapped /etc/cups/mime.types -- re-emerging brings it back.
Comment 7 Heinrich Wendel (RETIRED) gentoo-dev 2005-05-31 15:41:34 UTC
remerge cups, works here then 
Comment 8 Max 2005-06-05 07:24:05 UTC
Remerging doesn't help me. Problem is still the same, even after deleting
/etc/cups and remerging.