[Bug 1087512] Re: proxy authentication not working for HTTPS sources
rvolgers
1087512 at bugs.launchpad.net
Thu Nov 7 14:56:32 UTC 2013
Yes, *please* backport this to 12.04.
By the way there was a workaround that allowed proxy authentication to
work with https in the old version, but unfortunately this will break
once the fix ships (not surprising, since it shamelessly abuses the
overly permissive URI parser in apt):
Acquire::http::proxy "http://username:password@hostname:port";
Acquire::https::proxy "http://username:password@username:password@hostname:port";
(In other words, duplicating the username:password@ part for the https
proxy only.)
Again, I recommend against using this, since your apt config will stop
working once this fix is backported.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1087512
Title:
proxy authentication not working for HTTPS sources
Status in “apt” package in Ubuntu:
Fix Released
Status in “apt” package in Debian:
Fix Released
Bug description:
How to reproduce:
- have an APT repository over https
deb https://my.repo/ubuntu precise main
- have APT go though an HTTP proxy which requires HTTP authentication
apt-get -o
Acquire::http::proxy="http://test:test11@localhost:3128/" update
Expected results:
package lists are downloaded correctly
Actual result:
Failed to fetch https://my.repo/ubuntu/dists/precise/main/binary-amd64/Packages The requested URL returned error: 407
etc
The problem is that the https transport mangles the proxy string
before passing it to curl and strips the proxy credentials.
See attached patch to fix it.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: apt-transport-https 0.8.16~exp12ubuntu10.6
ProcVersionSignature: Ubuntu 3.2.0-32.51-generic 3.2.30
Uname: Linux 3.2.0-32-generic x86_64
ApportVersion: 2.0.1-0ubuntu14
Architecture: amd64
Date: Thu Dec 6 16:39:10 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcEnviron:
TERM=rxvt-unicode
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: apt
UpgradeStatus: Upgraded to precise on 2012-05-16 (204 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1087512/+subscriptions
More information about the foundations-bugs
mailing list