--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: cups: Wrong mime type when accessing localhost:631
- From: Witold Baryluk <witold.baryluk@gmail.com>
- Date: Tue, 19 May 2020 23:44:03 +0000
- Message-id: <158993184399.121684.12159061660194250796.reportbug@localhost>
Package: cups
Version: 2.3.3-1
Severity: important
Dear Maintainer,
for many months I had this issue, that prevents me from using
localhost:631 to configure CUPS.
$ wget http://localhost:631/
--2020-05-19 23:40:57-- http://localhost:631/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:631... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2295 (2.2K) [text/plain]
Saving to: ‘index.html’
index.html 100%[=====================================>] 2.24K --.-KB/s in 0s
2020-05-19 23:40:57 (303 MB/s) - ‘index.html’ saved [2295/2295]
$
As you can see mime type is text/plain, where it should be text/html.
This makes Firefox simply display a html as text instead of interpreting
it as HTML and now showing any links.
If I force Firefox to show request http://localhost:631/admin a situation
is slightly better, however its mime type is unspecfied, but Firefox
fallbacks to trying to parse it as HTML.
It does so succesfully, but then loading extra resources fails:
Console log: The stylesheet http://localhost:631/cups.css was not loaded because its MIME type, “text/plain”, is not “text/css”.
Indeed:
$ wget http://localhost:631/cups.css
--2020-05-19 23:43:45-- http://localhost:631/cups.css
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:631... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11092 (11K) [text/plain]
Saving to: ‘cups.css’
cups.css 100%[=====================================>] 10.83K --.-KB/s in 0s
2020-05-19 23:43:45 (52.5 MB/s) - ‘cups.css’ saved [11092/11092]
$
I would really appreciate fix for this.
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.2.0-3-amd64 (SMP w/32 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages cups depends on:
ii cups-client 2.3.3-1
ii cups-common 2.3.3-1
ii cups-core-drivers 2.3.3-1
ii cups-daemon 2.3.3-1
ii cups-filters 1.27.4-1+b1
ii cups-ppdc 2.3.3-1
ii cups-server-common 2.3.3-1
ii debconf [debconf-2.0] 1.5.74
ii ghostscript 9.52~dfsg-1
ii libavahi-client3 0.8-1
ii libavahi-common3 0.8-1
ii libc6 2.30-8
ii libcups2 2.3.3-1
ii libgcc-s1 10.1.0-1
ii libstdc++6 10.1.0-1
ii libusb-1.0-0 2:1.0.23-2
ii poppler-utils 0.85.0-1
ii procps 2:3.3.16-5
Versions of packages cups recommends:
ii avahi-daemon 0.8-1
ii colord 1.4.4-2
Versions of packages cups suggests:
ii cups-bsd 2.3.3-1
pn cups-pdf <none>
ii foomatic-db 20200427-1
pn smbclient <none>
ii udev 245.5-3
-- debconf information:
* cupsys/backend: lpd, socket, usb, snmp, dnssd
* cupsys/raw-print: true
--- End Message ---
--- Begin Message ---
- To: 931831-done@bugs.debian.org
- Subject: Re: Bug#931831: cups: http://localhost:631/ is served with HTTP Content-Type: text/plain
- From: Brian Potkin <claremont102@gmail.com>
- Date: Sun, 9 Jan 2022 22:41:15 +0000
- Message-id: <09012022223918.a91985a86e64@desktop.copernicus.org.uk>
- In-reply-to: <163734732215.3677643.17105286717655369434.reportbug@localhost>
- References: <156282303276.102244.4280912975744717926.reportbug@localhost> <163734732215.3677643.17105286717655369434.reportbug@localhost>
On Fri 19 Nov 2021 at 18:42:02 +0000, Witold Baryluk wrote:
> Package: cups
> Followup-For: Bug #931831
> X-Debbugs-Cc: witold.baryluk@gmail.com
>
> Dear Maintainer,
>
> This looks fixed to me.
>
> Thanks!
I will close the report then. Thanks for engaging.
Regards,
Brian.
--- End Message ---