Bug 186822 - pkg(1): pkg bootstrap code fails when connecting to a server that provides a chunked response
Summary: pkg(1): pkg bootstrap code fails when connecting to a server that provides a ...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 1.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-pkg (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-16 18:40 UTC by Tom Prince
Modified: 2015-04-14 19:46 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Prince 2014-02-16 18:40:00 UTC
If the provided PACKAGESITE is a server that provides a chunked response for /Latest/pkg.txz then the bootstrap code will ignore the response body and then fail to extract pkg-static from the empty archive.

(st.size is -1 with chunked so 
236 	while (done < st.size) {
is always false)
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2014-02-24 07:03:59 UTC
Responsible Changed
From-To: freebsd-bugs->portmgr

reclassify and assign.  While here, remove stray dfilter message.
Comment 2 Baptiste Daroussin freebsd_committer freebsd_triage 2015-04-14 19:46:46 UTC
Fixed in pkg 1.5