[Bug 506568] Re: poldek prepends extra slash to urls when http_proxy is used
Cactus
uzi18 at o2.pl
Fri Jan 15 18:18:12 CET 2010
Please, check this out:
http://starowa.one.pl/~uzi/pld/poldek-prepare_url_fix.patch
$ ./cli/poldek -r /tmp/test --fetch=/tmp/test -s http://ftp1.pld-linux.org/dists/th/PLD/x86_64/RPMS/ -u FHS -vv
Setting temporary cache directory path to /home/users/uzi/tmp/poldek-cache-uzi
Setting cache directory path to /home/users/uzi/tmp/poldek-cache-uzi
Enabling multilib mode, transaction color = 3
Pobieranie http://ftp1.pld-linux.org/dists/th/PLD/x86_64/RPMS/packages.ndir.gz...
Connecting to ftp1.pld-linux.org:80...
< GET /dists/th/PLD/x86_64/RPMS/packages.ndir.gz HTTP/1.1
< Host: ftp1.pld-linux.org
< User-Agent: poldek-vhttp/0.30
> HTTP/1.1 200 OK
** Attachment added: "poldek-prepare_url_fix.patch"
http://launchpadlibrarian.net/37930513/poldek-prepare_url_fix.patch
** Changed in: poldek
Status: Confirmed => In Progress
** Changed in: poldek
Assignee: (unassigned) => Cactus (uzi18)
--
poldek prepends extra slash to urls when http_proxy is used
https://bugs.launchpad.net/bugs/506568
You received this bug notification because you are subscribed to PLD
Linux.
Status in poldek: In Progress
Status in PLD Linux Distribution: New
Bug description:
poldek prepends extra slash to urls when http_proxy is used.
it fetches:
GET http://ftp1.pld-linux.org//dists/th/....rpm
must fetch:
GET http://ftp1.pld-linux.org/dists/th/....rpm
this breaks some setups of ftp mirrors.
to reproduce, find some http proxy, then use this code to test:
# rm -rf /tmp/test
# rpm -r /tmp/test --initdb
# poldek -r /tmp/test --fetch=/tmp/test -O 'proxy = http,ftp: http://proxy:3128/' -s http://ftp1.pld-linux.org/dists/th/PLD/x86_64/RPMS/ -u FHS -vv
Setting cache directory path to /var/cache/poldek
Enabling multilib mode, transaction color = 3
Loading [pndir]http://ftp1.pld-linux.org/dists/th/PLD/x86_64/RPMS/packages.ndir.gz...
Loading directory index of http://ftp1.pld-linux.org/dists/th/PLD/x86_64/RPMS/packages.ndir.gz...
10921 packages read
Indexing...
Processing dependencies...
There are 1 package to install:
I FHS-2.3-29.x86_64
Retrieving http://ftp1.pld-linux.org//[...]/FHS-2.3-29.x86_64.rpm...
Connecting to proxy:3128...
< GET http://ftp1.pld-linux.org//dists/th/PLD/x86_64/RPMS/FHS-2.3-29.x86_64.rpm HTTP/1.1
< Host: proxy
< User-Agent: poldek-vhttp/0.30
> HTTP/1.0 200 OK
> Date: Tue, 12 Jan 2010 18:49:33 GMT
> Server: Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8l
> Last-Modified: Wed, 21 Oct 2009 18:37:30 GMT
> ETag: "dfe9e5c2-9044-4767645794207"
> Accept-Ranges: bytes
> Content-Length: 36932
> Content-Type: application/x-rpm
> Age: 223
> Connection: close
Total file size 36932, 36932 to download, mtime Wed Oct 21 18:37:30 2009
.............................. 100.0% [36.1K (36.1K/s)]
Closing /tmp/test/FHS-2.3-29.x86_64.rpm (mtime 2009-10-21 15:37:30)
More information about the pld-bugs
mailing list