Debian Bug report logs - #599425
packages.d.o: do not say 200 OK on errors

Package: www.debian.org; Maintainer for www.debian.org is Debian WWW Team <debian-www@lists.debian.org>;

Reported by: Peter Palfrader <weasel@debian.org>

Date: Thu, 7 Oct 2010 14:51:01 UTC

Severity: normal

Tags: confirmed, patch

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian WWW Team <debian-www@lists.debian.org>:
Bug#599425; Package www.debian.org. (Thu, 07 Oct 2010 14:51:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Peter Palfrader <weasel@debian.org>:
New Bug report received and forwarded. Copy sent to Debian WWW Team <debian-www@lists.debian.org>. (Thu, 07 Oct 2010 14:51:04 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Peter Palfrader <weasel@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: packages.d.o: do not say 200 OK on errors
Date: Thu, 07 Oct 2010 16:49:08 +0200
Package: www.debian.org
Severity: normal

Hey,

packages.d.o (and archive.d.n) say 200 OK even on errors.

e.g.:
| weasel@intrepid:~$ wget -S  http://packages.debian.org/debian-volatile/dists/etch/volatile/main/source/Sources.bz2
| --2010-10-07 16:48:10--  http://packages.debian.org/debian-volatile/dists/etch/volatile/main/source/Sources.bz2
| Resolving packages.debian.org... 194.177.211.202, 87.106.64.223, 128.31.0.49, ...
| Connecting to packages.debian.org|194.177.211.202|:80... connected.
| HTTP request sent, awaiting response... 
|   HTTP/1.1 200 OK
| ^^^^^^^^^^^^^^^^^^
|   Date: Thu, 07 Oct 2010 14:48:11 GMT
|   Server: Apache

The document itself then says '<title>Debian -- Error</title>' but that's not
really enough.

Cheers,
weasel




Added tag(s) confirmed. Request was from Gerfried Fuchs <rhonda@debian.at> to control@bugs.debian.org. (Sun, 19 Dec 2010 00:00:12 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian WWW Team <debian-www@lists.debian.org>:
Bug#599425; Package www.debian.org. (Sun, 27 Mar 2011 20:30:59 GMT) Full text and rfc822 format available.

Acknowledgement sent to Simon Paillard <spaillard@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian WWW Team <debian-www@lists.debian.org>. (Sun, 27 Mar 2011 20:30:59 GMT) Full text and rfc822 format available.

Message #12 received at 599425@bugs.debian.org (full text, mbox):

From: Simon Paillard <spaillard@debian.org>
To: 599425@bugs.debian.org
Subject: Re: Bug#599425: packages.d.o: do not say 200 OK on errors
Date: Sun, 27 Mar 2011 22:01:53 +0200
[Message part 1 (text/plain, inline)]
tags 599425 +patch
thanks

Hi,

On Thu, Oct 07, 2010 at 04:49:08PM +0200, Peter Palfrader wrote:
> Package: www.debian.org
> Severity: normal
> 
> packages.d.o (and archive.d.n) say 200 OK even on errors.
> 
> e.g.:
> | weasel@intrepid:~$ wget -S  http://packages.debian.org/debian-volatile/dists/etch/volatile/main/source/Sources.bz2
> | --2010-10-07 16:48:10--  http://packages.debian.org/debian-volatile/dists/etch/volatile/main/source/Sources.bz2
> | Resolving packages.debian.org... 194.177.211.202, 87.106.64.223, 128.31.0.49, ...
> | Connecting to packages.debian.org|194.177.211.202|:80... connected.
> | HTTP request sent, awaiting response... 
> |   HTTP/1.1 200 OK
> | ^^^^^^^^^^^^^^^^^^
> |   Date: Thu, 07 Oct 2010 14:48:11 GMT
> |   Server: Apache
> 
> The document itself then says '<title>Debian -- Error</title>' but that's not
> really enough.

Such cases are actually planned by current code, but were not used.

However with the working patch attached (using something else than default
200):
- it leads the message error to be bare apache styled, so the only solution to
  that would be apache configuration (including l10n) using static files built
from templates.
- the message error itself is my default the default apache one, unless
  specifed otherwise: either we can do it by default in fatal_error function,
  or at each call (more conservative solution).

-- 
Simon Paillard
[0001-Call-fatal_error-with-relevant-HTTP-error-code-Close.patch (text/x-diff, attachment)]

Added tag(s) patch. Request was from Simon Paillard <spaillard@debian.org> to control@bugs.debian.org. (Sun, 27 Mar 2011 20:31:01 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 18 16:03:17 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.