[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#66434: marked as done (apt can't handle HTTP/1.0 redirects)



Your message dated Wed, 28 Jun 2000 16:36:22 -0600 (MDT)
with message-id <[🔎] Pine.LNX.3.96.1000628163517.18027A-100000@wakko.deltatee.com>
and subject line Bug#66434: apt can't handle HTTP/1.0 redirects
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Darren Benham
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 28 Jun 2000 20:36:49 +0000
>From taver@softlab.ece.ntua.gr Wed Jun 28 15:36:49 2000
Return-path: <taver@softlab.ece.ntua.gr>
Received: from achilles.noc.ntua.gr (ntua.gr) [147.102.222.210] 
	by master.debian.org with esmtp (Exim 3.12 2 (Debian))
	id 137OZl-0007fN-00; Wed, 28 Jun 2000 15:36:49 -0500
Received: from theseas.softlab.ece.ntua.gr (theseas.softlab.ece.ntua.gr [147.102.1.1])
	by ntua.gr (8.9.3/8.9.3) with ESMTP id XAA24389
	for <submit@bugs.debian.org>; Wed, 28 Jun 2000 23:36:47 +0300 (EET DST)
Received: (from taver@localhost)
	by theseas.softlab.ece.ntua.gr (8.10.1/8.10.1) id e5SKaka24643
	for submit@bugs.debian.org; Wed, 28 Jun 2000 23:36:46 +0300 (EET DST)
Date: Wed, 28 Jun 2000 23:36:46 +0300
From: Costas Tavernarakis <taver@softlab.ece.ntua.gr>
To: submit@bugs.debian.org
Subject: apt can't handle HTTP/1.0 redirects
Message-ID: <[🔎] 20000628233646.A23973@theseas.softlab.ece.ntua.gr>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 1.0i
Delivered-To: submit@bugs.debian.org

Package: apt
Version: 0.3.19

Apt-get cannot handle http redirects (code 302 responses).
To reproduce: setup an apache, and configure it with a
"Redirect / http://some-debian-mirror/";
Mention this apache instead of the real site in sources.list,
and try to apt-get update.

I'd like to have this feature, so that i can temporarily
redirect users of my mirror to other sites, if the mirrored
data is ever unavailable.

For example, with a sources.list line:
deb http://debian.otenet.gr/debian potato main contrib non-free
(that site currently issues redirects),
i get errors such as:
Err http://debian.otenet.gr potato/main Packages
  302 Found
Ign http://debian.otenet.gr potato/main Release
Err http://debian.otenet.gr potato/contrib Packages
  302 Found
Ign http://debian.otenet.gr potato/contrib Release
Err http://debian.otenet.gr potato/non-free Packages
  302 Found
Ign http://debian.otenet.gr potato/non-free Release

Costas Tavernarakis

---------------------------------------
Received: (at 66434-done) by bugs.debian.org; 28 Jun 2000 22:36:30 +0000
>From jgg@ualberta.ca Wed Jun 28 17:36:30 2000
Return-path: <jgg@ualberta.ca>
Received: from tmmi197-073.telusvelocity.net (wakko.deltatee.com) [209.115.197.73] (mail)
	by master.debian.org with esmtp (Exim 3.12 2 (Debian))
	id 137QRY-00041X-00; Wed, 28 Jun 2000 17:36:29 -0500
Received: from localhost (wakko.deltatee.com) [127.0.0.1] (jgg)
	by wakko.deltatee.com with smtp (Exim 2.11 #1)
	id 137QRS-0004nG-00 (Debian); Wed, 28 Jun 2000 16:36:22 -0600
Date: Wed, 28 Jun 2000 16:36:22 -0600 (MDT)
From: Jason Gunthorpe <jgg@ualberta.ca>
X-Sender: jgg@wakko.deltatee.com
To: Costas Tavernarakis <taver@softlab.ece.ntua.gr>, 
    66434-done@bugs.debian.org
cc: submit@bugs.debian.org, debian-bugs-dist@lists.debian.org, 
    APT Development Team <deity@lists.debian.org>
Subject: Re: Bug#66434: apt can't handle HTTP/1.0 redirects
In-Reply-To: <[🔎] 20000628233646.A23973@theseas.softlab.ece.ntua.gr>
Message-ID: <[🔎] Pine.LNX.3.96.1000628163517.18027A-100000@wakko.deltatee.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Delivered-To: 66434-done@bugs.debian.org


On Wed, 28 Jun 2000, Costas Tavernarakis wrote:

> Apt-get cannot handle http redirects (code 302 responses).
> To reproduce: setup an apache, and configure it with a
> "Redirect / http://some-debian-mirror/";
> Mention this apache instead of the real site in sources.list,
> and try to apt-get update.

Deliberate, redirects are not guarenteed to give the same file that was
requests (see for instance mod speeling)

No proper mirror should generate redirects like that, play with the DNS
instead.

Jason



Reply to: