Package: approx
Version: 2.03
Severity: important

Hi, Eric,

apt 0.4.1 seems to use full request URI's that approx fails to parse
correctly. Example follows: (wraps all over the place)


Older apt (apt 0.5.28.6, aptitude 0.2.15.9-2):

Mar 25 12:47:31 shrek approx: Connection from 10.0.1.10:56367
Mar 25 12:47:31 shrek approx: Request
/debian/pool/main/p/python-cjkcodecs/python2.3-cjkcodecs_1.1.1-1_i386.deb
Mar 25 12:47:31 shrek approx:   Host: proxy:9999
Mar 25 12:47:31 shrek approx:   Connection: keep-alive
Mar 25 12:47:31 shrek approx:   User-Agent: Debian APT-HTTP/1.3
Mar 25 12:47:31 shrek approx:
debian/pool/main/p/python-cjkcodecs/python2.3-cjkcodecs_1.1.1-1_i386.deb
Mar 25 12:47:31 shrek approx:   414380 minutes old
Mar 25 12:47:31 shrek approx:   ims Thu, 01 Jan 1970 00:00:00 GMT  mtime
Thu, 02 Sep 2004 15:17:17 GMT
Mar 25 12:47:31 shrek approx: Cache hit
Mar 25 12:47:31 shrek approx:   Content-Type: text/plain
Mar 25 12:47:31 shrek approx:   Content-Length: 617964
Mar 25 12:47:31 shrek approx:   Last-Modified: Thu, 02 Sep 2004 15:17:17
GMT


Newer apt (apt 0.6.43.3, aptitude 0.4.1-1):

Mar 25 12:45:19 shrek approx: Connection from 192.168.110.32:45923
Mar 25 12:45:19 shrek approx: Request
http://proxy:9999.creditreform.bg/security/dists/sarge/updates/contrib/binary-i386/Packages.gz
Mar 25 12:45:19 shrek approx:   Host: proxy:9999
Mar 25 12:45:19 shrek approx:   Cache-Control: max-age=0
Mar 25 12:45:19 shrek approx:   If-Modified-Since: Fri, 26 Aug 2005
05:56:17 GMTMar 25 12:45:19 shrek approx:   User-Agent: Debian
APT-HTTP/1.3
Mar 25 12:45:19 shrek approx: no remote repository found for http:


As you can see, newer apt uses full URI in the request, including
scheme://<host:port> while older apt omits the scheme://host:port part.

It seems approx does not understand full URIs and assumes everithing up
to the first slash ("http:") is repository name.

I can try to fix this locally and propose a patch, but my Ocaml skills
are non-existing and I don't expect miracles :)


Thank you for writing approx.


dam

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686-smp
Locale: LANG=bg_BG.UTF-8, LC_CTYPE=bg_BG.UTF-8 (charmap=UTF-8)

Versions of packages approx depends on:
ii  adduser                   3.63           Add and remove users and groups
ii  bzip2                     1.0.2-7        high-quality block-sorting file co
ii  curl                      7.13.2-2sarge5 Get a file from an HTTP, HTTPS, FT
ii  libc6                     2.3.6-4        GNU C Library: Shared libraries an
ii  libpcre3                  4.5-1.2sarge1  Perl 5 Compatible Regular Expressi

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to