Re: [Zero-install-bugs] Bug in http://displaycal.net/0install/netifaces.xml (Maximum file size exceeded)

Thomas Leonard <[email protected]> Sat, 10 Jun 2017 19:55:46 +0100
Newsgroups gmane.comp.file-systems.zero-install.devel
Message-ID <CAG4opy8byezspEzKADpMLJ0om-9e96QU1Ro1P9pG7YAxgw6ixA@mail.gmail.com>
On 10 June 2017 at 09:12,  <[email protected]> wrote:
> Error downloading 'https://sourceforge.net/projects/dispcalgui/files/3rdparty/netifaces.tar': Maximum file size exceeded
> ... downloading implementation http://displaycal.net/0install/netifaces.xml 0.0.0 (id=sha1new=81f750d61e95a8c46a06f7c8164a480da993d5e1)
>
> Information about your setup
>
> Problem with http://displaycal.net/0install/netifaces.xml
>   (while attempting to run http://displaycal.net/0install/DisplayCAL.xml)
>
> 0install version 2.8

This is a bug in 0install. It tells curl the maximum size body to
allow as the expected size of the archive. However, for a small
archive (like this one) it is possible that the redirect message is
longer than the archive, and this triggers the error.

I've made a fix here:
https://github.com/0install/0install/commit/71981239a5eec5c9153d7f105c144a03d2d8dbc4

A work-around is to retry the download, as sf.net seems to load
balance across two servers, one of which returns a much longer
redirect response than the other (345 bytes vs 15522 bytes)!


-- 
talex5 (GitHub/Twitter)        http://roscidus.com/blog/
GPG: 5DD5 8D70 899C 454A 966D  6A51 7513 3C8F 94F6 E0CC

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot