CGI-Mode with non standard port

Bug #996460 reported by DrF
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt-cacher (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

when try to run apt-cacher 1.6.10ubuntu2 in cgi-mode with non standard port (in my case port 8088) the apt-cacher does not work.

See Log /var/log/apt-cacher/error.log:

Tue May 8 10:34:11 2012|debug [8207]: New CGI connection
Tue May 8 10:34:11 2012|debug [8207]: testing denied_hosts
Tue May 8 10:34:11 2012|debug [8207]: Client 10.123.64.80 passed access control rules
Tue May 8 10:34:11 2012|debug [8207]: Processing a new request line
Tue May 8 10:34:11 2012|debug [8207]: got: GET /security.ubuntu.com/ubuntu/dists/lucid-security/restricted/source/Sources.gz
Tue May 8 10:34:11 2012|debug [8207]: Processing a new request line
Tue May 8 10:34:11 2012|debug [8207]: got:
Tue May 8 10:34:11 2012|debug [8207]: Checking host lucid-repository.nbg.atrada.net in absolute URI
Tue May 8 10:34:11 2012|info [8207]: Unable to connect to lucid-repository.nbg.atrada.net
Tue May 8 10:34:11 2012|debug [8207]: Clean up before exiting.

The line
Tue May 8 10:34:11 2012|info [8207]: Unable to connect to lucid-repository.nbg.atrada.net
points to the error: port 80 is used not port 8088

Suggested Fix:
in /usr/share/apt-cacher/apt-cacher replace line 386:
old:
$testpath="http://$ENV{SERVER_NAME}/$testpath" if $mode && $mode eq 'cgi';
new:
$testpath="http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/$testpath" if $mode && $mode eq 'cgi';

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: apt-cacher 1.6.10ubuntu2 [modified: usr/share/apt-cacher/apt-cacher]
ProcVersionSignature: Ubuntu 2.6.32-41.88-server 2.6.32.59+drm33.24
Uname: Linux 2.6.32-41-server x86_64
Architecture: amd64
Date: Tue May 8 11:50:37 2012
InstallationMedia: Ubuntu-Server 10.04 LTS "Lucid Lynx" - Release amd64 (20100427)
PackageArchitecture: all
ProcEnviron:
 LC_CTYPE=de_DE@euro
 PATH=(custom, no user)
 LANG=C
 SHELL=/bin/bash
SourcePackage: apt-cacher

Revision history for this message
DrF (z-launchpad-net-the-huberts-net) wrote :
Revision history for this message
dino99 (9d9) wrote :

version no more supported; not a 'security' problem, so no backport expected

Changed in apt-cacher (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.