Public bug reported:

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)

** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug precise

** Patch added: "apt-https-auth.patch"
   
https://bugs.launchpad.net/bugs/1087512/+attachment/3453477/+files/apt-https-auth.patch

** Summary changed:

- proxy authentication not working over HTTPS
+ proxy authentication not working for HTTPS sources

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1087512

Title:
  proxy authentication not working for HTTPS sources

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1087512/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to