Package: apt-cacher-ng
Version: 0.7.25-1
Severity: normal
Tags: upstream patch

Dear Maintainer,

When you attempt to delete unreferenced files through the "Delete all
listed files" link on the "Show unreferenced" page, the operation fails
because the URL is incorrect. Specifically, the "acng-report.html" part
of the URL gets treated as the host name.

I have included a patch to fix the problem.

-- Package-specific info:

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apt-cacher-ng depends on:
ii  adduser                3.113+nmu3
ii  debconf [debconf-2.0]  1.5.52
ii  dpkg                   1.17.1
ii  init-system-helpers    1.14
ii  libbz2-1.0             1.0.6-5
ii  libc6                  2.17-97
ii  libgcc1                1:4.8.1-10
ii  liblzma5               5.1.1alpha+20120614-2
ii  libssl1.0.0            1.0.1e-3
ii  libstdc++6             4.8.1-10
ii  libwrap0               7.6.q-25
ii  zlib1g                 1:1.2.8.dfsg-1

Versions of packages apt-cacher-ng recommends:
ii  avahi-daemon  0.6.31-4
ii  ed            1.9-2

Versions of packages apt-cacher-ng suggests:
ii  curl      7.32.0-1
ii  doc-base  0.10.5
ii  libfuse2  2.9.2-4
ii  wget      1.14-4

-- Configuration Files:
/etc/apt-cacher-ng/acng.conf changed:
CacheDir: /var/cache/apt-cacher-ng
LogDir: /var/log/apt-cacher-ng
Port:3142
BindAddress: 192.168.0.1
Remap-debrep: file:deb_mirror*.gz file:deb_mirrors /debian ; 
file:backends_debian # Debian Archives
Remap-uburep: file:ubuntu_mirrors security.ubuntu.com/ubuntu /ubuntu ; 
file:backends_ubuntu # Ubuntu Archives
Remap-debvol: file:debvol_mirror*.gz /debian-volatile ; file:backends_debvol # 
Debian Volatile Archives
Remap-debmul: file:debmul_mirrors /debian-multimedia ; file:backends_debmul
Remap-medibuntu: file:medibuntu_mirrors /medibuntu ; file:backends_medibuntu
Remap-getdeb: file:getdeb_mirrors /getdeb ; file:backends_getdeb
Remap-mate: http://packages.mate-desktop.org/repo/
Remap-opera: http://deb.opera.com/opera/
Remap-cygwin: file:cygwin_mirrors /cygwin # ; file:backends_cygwin # 
incomplete, please create this file or specify preferred mirrors here
Remap-sfnet:  file:sfnet_mirrors http://downloads.sourceforge.net/ # ; 
file:backends_sfnet # incomplete, please create this file or specify preferred 
mirrors here
Remap-alxrep: file:archlx_mirrors /archlinux # ; file:backend_archlx # Arch 
Linux
Remap-fedora:  file:fedora_mirrors # Fedora Linux
Remap-epel:   file:epel_mirrors # Fedora EPEL
Remap-slrep:  file:sl_mirrors # Scientific Linux
Remap-gentoo: file:gentoo_mirrors.gz /gentoo ; file:backends_gentoo # Gentoo 
Archives
ReportPage: acng-report.html
ExTreshold: 4
VfilePattern = 
(^|.*/)(Index|Packages(\.gz|\.bz2|\.lzma|\.xz)?|InRelease|Release|Release\.gpg|custom\.gpg|mirrors.txt|Sources(\.gz|\.bz2|\.lzma|\.xz)?|release|index\.db-.*\.gz|Contents-[^/]*(\.gz|\.bz2|\.lzma|\.xz)?|pkglist[^/]*\.bz2|rclist[^/]*\.bz2|meta-release[^/]*|Translation[^/]*(\.gz|\.bz2|\.lzma|\.xz)?|MD5SUMS|SHA1SUMS|((setup|setup-legacy)(\.ini|\.bz2|\.hint)(\.sig)?)|mirrors\.lst|repo(index|md)\.xml(\.asc|\.key)?|directory\.yast|products|content(\.asc|\.key)?|media|filelists\.xml\.gz|filelists\.sqlite\.bz2|repomd\.xml|packages\.[a-zA-Z][a-zA-Z]\.gz|info\.txt|license\.tar\.gz|license\.zip|.*\.(db|files|abs)(\.tar(\.gz|\.bz2|\.lzma|\.xz))?|metalink\?repo|.*prestodelta\.xml\.gz|repodata/.*\.(xml|sqlite)(\.gz|\.bz2|\.lzma|\.xz))$|/dists/.*/installer-[^/]+/[^0-9][^/]+/images/.*|^.*(\.vps|\.md5|\.exe|\.cab|\.msi|\.zip|\.bin|\.psf|\.7z|\.iso|\.msu|\.apf|\.pdf|\.swf|\.f4v|\.flv|\.xml|\.png|\.dae|\.jpg|\.css|\.js|\.gif|\.wof|\.apm)$
WfilePattern = 
(^|.*/)(Release|InRelease|Release\.gpg|custom\.gpg|(Packages|Sources)(\.gz|\.bz2|\.lzma|\.xz)?|Translation[^/]*(\.gz|\.bz2|\.lzma|\.xz)?|MD5SUMS|SHA1SUMS|.*\.xml|.*\.(db|files|abs)(\.tar(\.gz|\.bz2|\.lzma|\.xz))?|[a-z]+32.exe)$|/dists/.*/installer-.*/images/.*|^static/.*
RecompBz2: 1
DontCache: carlitos 192.168.0.1
DirPerms: 02755
FilePerms: 00644
LocalDirs: acng-doc /usr/share/doc/apt-cacher-ng
PassThroughPattern: private-ppa\.launchpad\.net:443$

/etc/apt-cacher-ng/security.conf [Errno 13] Permission denied: 
u'/etc/apt-cacher-ng/security.conf'
/etc/default/apt-cacher-ng changed:
umask 022
DAEMON_OPTS=" -c /etc/apt-cacher-ng "


-- debconf information:
  apt-cacher-ng/proxy: keep
  apt-cacher-ng/cachedir: keep
  apt-cacher-ng/gentargetmode: No automated setup
  apt-cacher-ng/bindaddress: keep
  apt-cacher-ng/port: keep
>From df55066f460a3b2da7ee05d013c65b8f6342fd78 Mon Sep 17 00:00:00 2001
From: Carlos Maddela <madd...@labyrinth.net.au>
Date: Sat, 1 Feb 2014 09:14:40 +1100
Subject: fix delete link

Description: Fix "Delete all listed files" link for unreferenced
 files.
Patch-Name: fix-delete-link.patch
---
 source/expiration.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/expiration.cc b/source/expiration.cc
index 65079fb..40bf4ee 100644
--- a/source/expiration.cc
+++ b/source/expiration.cc
@@ -475,7 +475,7 @@ void expiration::Action(const string & cmd)
 
 		mstring delURL(cmd);
 		StrSubst(delURL, "justShow", "justRemove");
-		SendFmtRemote << "<a href=\"/"<<delURL<<"\">Delete all listed files</a> "
+		SendFmtRemote << "<a href=\""<<delURL<<"\">Delete all listed files</a> "
 				"(no further confirmation)<br>\n";
 		return;
 	}

Reply via email to