Debian Bug report logs -
#479350
apt-get does not follow redirects over http
Reported by: zeridon <vvitkov@gmail.com>
Date: Sun, 4 May 2008 11:57:01 UTC
Severity: wishlist
Tags: patch
Merged with 79002,
178854,
427909
Found in versions apt/0.6.46.4-0.1, 0.5.4, 0.5.28.6, 0.3.19
Fixed in version apt/0.7.21
Done: Michael Vogt <mvo@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, unknown-package@qa.debian.org:
Bug#479350; Package apt-get.
(full text, mbox, link).
Acknowledgement sent to zeridon <vvitkov@gmail.com>:
New Bug report received and forwarded. Copy sent to unknown-package@qa.debian.org.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: apt-get
Severity: wishlist
apt-get does not support redirects if using the http method for data transfer.
This could be very usefull feature.
The reason for submission is that i am tasked with moving a mirror (not official debian mirror, just a specialised
one) to a new machine and i want to do it with minimal impact on the userbase. The basic idea was to setup another
mirror on a different machine, temporary redirect all requests and then mangle with the dns records to point where
they has to be.
Another usefull situation is if a mirror is overloaded and there is a backup somehow (geolocation for example) to
transfer part of the load to other machines.
Yes i am aware there are clustering technologies that can be used, also maybe apt-proxy but in my oppinion this is
suboptimal.
regards
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Information forwarded to debian-bugs-dist@lists.debian.org, unknown-package@qa.debian.org:
Bug#479350; Package apt-get.
(full text, mbox, link).
Acknowledgement sent to Colin Watson <cjwatson@debian.org>:
Extra info received and forwarded to list. Copy sent to unknown-package@qa.debian.org.
(full text, mbox, link).
Message #10 received at 479350@bugs.debian.org (full text, mbox, reply):
reassign 479350 apt
thanks
On Sun, May 04, 2008 at 02:55:59PM +0300, zeridon wrote:
> Package: apt-get
> Severity: wishlist
>
> apt-get does not support redirects if using the http method for data
> transfer.
>
> This could be very usefull feature.
I understand that the reason this isn't supported is that it caused
problems when mirrors were run on servers with the Apache mod_speling
module enabled; users ended up getting redirected to the wrong package.
Perhaps the right answer is to support only certain redirects; for
example, apt could support redirects provided that the file name part of
the URL remains the same, so for example a redirect from
http://foo.example.org/debian/pool/main/b/base-files/base-files_4.0.1_i386.deb
to
http://bar.example.org/debian-mirror/pool/main/b/base-files/base-files_4.0.1_i386.deb
would be allowed, but a redirect from the same URL to
http://foo.example.org/debian/pool/main/b/base-files/base-files_4.0.2_i386.deb
would not.
> The reason for submission is that i am tasked with moving a mirror
> (not official debian mirror, just a specialised one) to a new machine
> and i want to do it with minimal impact on the userbase. The basic
> idea was to setup another mirror on a different machine, temporary
> redirect all requests and then mangle with the dns records to point
> where they has to be.
Of course, you can still do this with low impact by changing DNS records
and running both mirrors in parallel until the TTL expires. It just has
to not involve HTTP redirects at the moment, that's all.
Cheers,
--
Colin Watson [cjwatson@debian.org]
Bug reassigned from package `apt-get' to `apt'.
Request was from Colin Watson <cjwatson@debian.org>
to control@bugs.debian.org.
(Sun, 04 May 2008 12:21:05 GMT) (full text, mbox, link).
Forcibly Merged 79002 178854 479350.
Request was from Daniel Burrows <dburrows@debian.org>
to control@bugs.debian.org.
(Sun, 31 Aug 2008 21:03:11 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#479350; Package apt.
(Fri, 24 Jul 2009 11:21:13 GMT) (full text, mbox, link).
Acknowledgement sent
to David Greaves <david@dgreaves.com>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>.
(Fri, 24 Jul 2009 11:21:18 GMT) (full text, mbox, link).
Message #19 received at 479350@bugs.debian.org (full text, mbox, reply):
It appears there is a patch for this bug:
http://bazaar.launchpad.net/~ubuntu-core-dev/apt/ubuntu/revision/1688
Would it be reasonable to apply it to Debian's apt?
David
Reply sent
to Michael Vogt <mvo@debian.org>:
You have taken responsibility.
(Mon, 27 Jul 2009 09:15:05 GMT) (full text, mbox, link).
Notification sent
to zeridon <vvitkov@gmail.com>:
Bug acknowledged by developer.
(Mon, 27 Jul 2009 09:15:05 GMT) (full text, mbox, link).
Message #24 received at 479350-done@bugs.debian.org (full text, mbox, reply):
On Fri, Jul 24, 2009 at 12:19:07PM +0100, David Greaves wrote:
> It appears there is a patch for this bug:
> http://bazaar.launchpad.net/~ubuntu-core-dev/apt/ubuntu/revision/1688
>
> Would it be reasonable to apply it to Debian's apt?
That patch got applied to 0.7.21 (currently in debian/testing).
Cheers,
Michael
> David
>
>
>
>
> --
> To UNSUBSCRIBE, email to deity-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
Reply sent
to Michael Vogt <mvo@debian.org>:
You have taken responsibility.
(Mon, 27 Jul 2009 09:15:05 GMT) (full text, mbox, link).
Notification sent
to Lee Maguire <lee-debian@hexkey.co.uk>:
Bug acknowledged by developer.
(Mon, 27 Jul 2009 09:15:05 GMT) (full text, mbox, link).
Reply sent
to Michael Vogt <mvo@debian.org>:
You have taken responsibility.
(Mon, 27 Jul 2009 09:15:06 GMT) (full text, mbox, link).
Notification sent
to Luke Reeves <lreeves@members.fsf.org>:
Bug acknowledged by developer.
(Mon, 27 Jul 2009 09:15:06 GMT) (full text, mbox, link).
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Tue, 25 Aug 2009 07:26:57 GMT) (full text, mbox, link).
Bug unarchived.
Request was from David Kalnischkies <kalnischkies+debian@gmail.com>
to control@bugs.debian.org.
(Wed, 25 Nov 2009 21:33:05 GMT) (full text, mbox, link).
Bug Marked as fixed in versions apt/0.7.21.
Request was from David Kalnischkies <kalnischkies+debian@gmail.com>
to control@bugs.debian.org.
(Wed, 25 Nov 2009 21:33:08 GMT) (full text, mbox, link).
Bug archived.
Request was from David Kalnischkies <kalnischkies+debian@gmail.com>
to control@bugs.debian.org.
(Wed, 25 Nov 2009 21:33:09 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Thu Jan 11 21:35:41 2018;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.