Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 291469

Summary: net-misc/curl >= 7.19.4 CURLINFO_CONTENT_LENGTH_DOWNLOAD bug`
Product: Gentoo Linux Reporter: Gabriel Kuri <gkuri>
Component: New packagesAssignee: Daniel Black (RETIRED) <dragonheart>
Status: RESOLVED FIXED    
Severity: normal CC: henson
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Gabriel Kuri 2009-11-01 19:43:02 UTC
curl >= 7.19.4 has a bug where it will return -1 if the Content-Length = 0. I reported this bug to the curl developers and had it fixed in trunk. Here's the curl bug that was reported and fixed:

     http://sourceforge.net/tracker/?func=detail&aid=2884561&group_id=976&atid=100976

I'm requesting the associated patch for this bug be added into the ebuilds for net-misc/curl until the next official release of curl is available, as this bug also affects sys-fs/s3fs, as a file size of 0 or directories in the S3 storage bucket shows up as size MAXINT and breaks applications.

Here's a link to patch applied to trunk for this bug:

     http://curl.haxx.se/cvs.cgi/curl/lib/progress.c?r1=1.92&r2=1.93&view=patch

Thanks,
Gabriel Kuri
Comment 1 Gabriel Kuri 2009-11-04 19:50:48 UTC
(In reply to comment #0)
> curl >= 7.19.4 has a bug where it will return -1 if the Content-Length = 0. I
> reported this bug to the curl developers and had it fixed in trunk. Here's the
> curl bug that was reported and fixed:
> 
>     
> http://sourceforge.net/tracker/?func=detail&aid=2884561&group_id=976&atid=100976
> 
> I'm requesting the associated patch for this bug be added into the ebuilds for
> net-misc/curl until the next official release of curl is available, as this bug
> also affects sys-fs/s3fs, as a file size of 0 or directories in the S3 storage
> bucket shows up as size MAXINT and breaks applications.
> 
> Here's a link to patch applied to trunk for this bug:
> 
>      http://curl.haxx.se/cvs.cgi/curl/lib/progress.c?r1=1.92&r2=1.93&view=patch
> 
> Thanks,
> Gabriel Kuri
> 

Curl 7.19.7 was released today, which has this referenced bug fixed. Perhaps it would be better to just release an ebuild for curl-7.19.7, rather than applying a patch to the older ebuilds.

Gabe
Comment 2 Daniel Black (RETIRED) gentoo-dev 2009-11-05 04:38:53 UTC
added 7.19.7 as requested. Thanks.

if there's a bit more demand for a backport to 7.19.4 I'll do it but it seems only a few badly(?) behaved servers are affected.