xbps icon indicating copy to clipboard operation
xbps copied to clipboard

xbps-fetch invalid url scheme

Open arete opened this issue 4 years ago • 2 comments

Hi i try do build pgpool-II for void-package, but i have this issue on fetch soruce

xbps-fetch -v  'https://www.pgpool.net/mediawiki/download.php?f=pgpool-II-4.3.1.tar.gz'
looking up www.pgpool.net
connecting to www.pgpool.net:443
connecting to 108.138.199.43
SSL options: 82004854
Peer verification enabled
Using CA cert path: /etc/ssl/certs
Verify hostname
TLSv1.3 connection established using TLS_AES_128_GCM_SHA256
Certificate subject: /CN=*.pgpool.net
Certificate issuer: /C=US/O=Amazon/OU=Server CA 1B/CN=Amazon
requesting https://www.pgpool.net/mediawiki/download.php?f=pgpool-II-4.3.1.tar.gz
302 redirect to images/pgpool-II-4.3.1.tar.gz
https://www.pgpool.net/mediawiki/download.php?f=pgpool-II-4.3.1.tar.gz: Invalid URL scheme

arete avatar Apr 01 '22 11:04 arete

As of RFC 7231 relative Location headers are permitted, but no version of libfetch supports that afaics.

I guess you can follow the redirect yourself as a hotfix.

leahneukirchen avatar Apr 01 '22 15:04 leahneukirchen

i apply you hotfix

arete avatar Apr 16 '22 22:04 arete