Package: apt-cacher Version: 1.6.7 Severity: important Tags: patch Hi,
CGI mode doesn't work. After turning debugging on, I've got the following infos in error.log file: Sat Jan 3 10:21:02 2009|debug [8421]: New CGI connection Sat Jan 3 10:21:02 2009|debug [8421]: client is localhost Sat Jan 3 10:21:02 2009|debug [8421]: Client 127.0.0.1 passed access control rules Sat Jan 3 10:21:02 2009|debug [8421]: Processing a new request line Sat Jan 3 10:21:02 2009|debug [8421]: got: GET /ftp.pl.debian.org/debian/dists/sid/Release.gpg Sat Jan 3 10:21:02 2009|debug [8421]: Processing a new request line Sat Jan 3 10:21:02 2009|debug [8421]: got: Sat Jan 3 10:21:02 2009|debug [8421]: Checking host localhost in absolute URI Sat Jan 3 10:21:02 2009|debug [8421]: Host in Absolute URI is not this server Sat Jan 3 10:21:02 2009|debug [8421]: Resolved request is /localhost//ftp.pl.debian.org/debian/di Sat Jan 3 10:21:02 2009|debug [8421]: new index file: localhost_ftp.pl.debian.org_debian_dists_si Sat Jan 3 10:21:02 2009|debug [8421]: looking for /var/cache/apt-cacher/packages/localhost_ftp.pl. Sat Jan 3 10:21:02 2009|debug [8421]: known as index file: Release.gpg Sat Jan 3 10:21:02 2009|debug [8421]: Entering critical section : file download decision Sat Jan 3 10:21:02 2009|debug [8421]: file does not exist or download required, forking fetcher Sat Jan 3 10:21:02 2009|debug [8421]: MISS Sat Jan 3 10:21:02 2009|debug [8422]: Exiting critical section Sat Jan 3 10:21:02 2009|debug [8422]: fetcher: try to fetch http://localhost/ftp.pl.debian.org/de Sat Jan 3 10:21:02 2009|debug [8422]: download agent: getting http://localhost/ftp.pl.debian.org/ Note that it should be trying to download from http://ftp.pl.debian.org not from http://localhost. The following patch fixes this issue for me: --- apt-cacher.distrib 2008-11-06 21:46:45.000000000 +0100 +++ apt-cacher 2009-01-03 10:32:49.000000000 +0100 @@ -368,7 +368,7 @@ if(/^$/) { if(defined($testpath)) { # done reading request - $testpath="http://$ENV{SERVER_NAME}/$testpath" if $mode && $mode eq 'cgi'; + # $testpath="http://$ENV{SERVER_NAME}/$testpath" if $mode && $mode eq 'cgi'; $path=$testpath; last CLIENTLINE; } Regard, Robert -- System Information: Debian Release: 5.0 APT prefers unstable APT policy: (990, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.26 Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2) Shell: /bin/sh linked to /bin/pdksh Versions of packages apt-cacher depends on: ii bzip2 1.0.5-1 high-quality block-sorting file co ii ed 0.7-3 The classic unix line editor ii libdigest-sha1-perl 2.11-2+b1 NIST SHA-1 message digest algorith ii libfreezethaw-perl 0.43-4 converting Perl structures to stri ii libwww-curl-perl 4.05-1 Perl bindings to libcurl ii libwww-perl 5.820-1 WWW client/server library for Perl ii perl 5.10.0-19 Larry Wall's Practical Extraction Versions of packages apt-cacher recommends: ii libberkeleydb-perl 0.34-1+b1 use Berkeley DB 4 databases from P Versions of packages apt-cacher suggests: pn libio-socket-inet6-perl <none> (no description available) -- no debconf information -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

