https://bugzilla.wikimedia.org/show_bug.cgi?id=72274

Jesús Martínez Novo (Ciencia Al Poder) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #5 from Jesús Martínez Novo (Ciencia Al Poder) 
<[email protected]> ---
The problem is that the internal HTTP request to run jobs doesn't include the
Content-Length: header (as the HTTP 411 error explains), but it seems to be
required[1] (although some webservers, even my apache 2.2.22 on OpenSuSE,
doesn't complain about that missing header!):

Relevant code in MediaWiki.php (or Wiki.php before 1.24)

$req = "POST $url HTTP/1.1\r\nHost: {$info['host']}\r\nConnection:
Close\r\n\r\n";
...
$bytes = fwrite( $sock, $req );

The solution is simple: Send a Content-Length: header.

----

[1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to