error parsing HTTP Status-Line
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Debian) |
Fix Released
|
Unknown
|
|||
apt (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: apt
Version: 0.7.20.2ubuntu6
Description: Ubuntu 9.04
Release: 9.04
root@Lena:
0% [Pracuje]GET /ubuntu/
Host: pl.archive.
Connection: keep-alive
User-Agent: Ubuntu APT-HTTP/1.3 (0.7.20.2ubuntu6)
GET /ubuntu/
Host: pl.archive.
Connection: keep-alive
If-Modified-Since: Tue, 09 Jun 2009 13:03:09 GMT
User-Agent: Ubuntu APT-HTTP/1.3 (0.7.20.2ubuntu6)
HTTP/1.0 200 OK
Date: Mon, 10 Aug 2009 13:32:09 GMT
Server: Apache/2.2.0 (Unix)
Last-Modified: Wed, 22 Apr 2009 21:35:26 GMT
ETag: "ad699-
Accept-Ranges: bytes
Content-Length: 189
Content-Type: text/plain
Age: 644
X-Cache: HIT from localhost
X-Cache-Lookup: HIT from localhost:19371
Via: 1.0 localhost (squid/3.0.STABLE8)
Proxy-Connection: keep-alive
Pob: 1 http://
98% [Podłączanie do pl.archive.
Host: pl.archive.
Connection: keep-alive
If-Modified-Since: Tue, 09 Jun 2009 13:03:09 GMT
User-Agent: Ubuntu APT-HTTP/1.3 (0.7.20.2ubuntu6)
HTTP/1.0 304
Date: Sat, 08 Aug 2009 14:06:13 GMT
Content-Type: text/plain
Last-Modified: Tue, 09 Jun 2009 13:03:09 GMT
Age: 171400
Warning: 113 localhost (squid/3.0.STABLE8) This cache hit is still fresh and more than 1 day old
X-Cache: HIT from localhost
X-Cache-Lookup: HIT from localhost:19371
Via: 1.0 localhost (squid/3.0.STABLE8)
Proxy-Connection: keep-alive
Błąd http://
Serwer HTTP przysłał nieprawidłowy nagłówek odpowiedzi
...
Other requests...
Serwer HTTP przysłał nieprawidłowy nagłówek odpowiedzi <- means HTTP server send incorect header in respone.
Lets look at this response from squid3 cache. It is "HTTP/1.0 304 " with trailing space and empty reason phrase. According to rfc2616 section 6.1.1:
Reason-Phrase = *<TEXT, excluding CR, LF>
so it can be empty. I will bet that this is the problem.
Regards.
Changed in apt (Ubuntu): | |
status: | New → Triaged |
Changed in apt (Ubuntu): | |
importance: | Undecided → Medium |
Changed in apt (Debian): | |
status: | Unknown → Fix Released |
I found the problem in apt-0.7. 20.2ubuntu6/ methods/ http.cc line 549, calls:
if (sscanf( Line.c_ str()," HTTP/%u. %u %u %[^\n]" ,&Major, &Minor, >Error( _("The HTTP server sent an invalid reply header"));
&Result,Code) != 4)
return _error-
according to manual page of sscanf(3) line 215,
[ Matches a non-empty sequence of characters from the specified
set of accepted characters; ...
"non-empty" So this is the problem.