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

       Web browser: ---
             Bug #: 31603
           Summary: Regression: API categorymembers and login occasionally
                    fails to gzip/compress responses
           Product: MediaWiki
           Version: 1.18
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: API
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified


While repeatedly fetching the URL

http://en.wikipedia.org/w/api.php?format=xml&action=query&list=categorymembers&cmtitle=Category:Candidates_for_speedy_deletion

with "Accept-encoding: gzip" set, occasionally (about 10% probability) I will
receive a response that is uncompressed. I've received reports this also
happens when using API login (see [[User talk:MER-C#Wiki.java...again]]).

Test code:

import java.io.*;
import java.net.*;

public class Blah
{
    public static void main(String[] args) throws IOException
    {
        for (int i = 0; i < 25; i++)
        {
            URLConnection connection = new
URL("http://en.wikipedia.org/w/api.php?format=xml&action=query&list=categorymembers&cmtitle=Category:Candidates_for_speedy_deletion";).openConnection();
            connection.setRequestProperty("Accept-encoding", "gzip");
            connection.setRequestProperty("User-Agent", "Test script");
            connection.connect();
            System.out.println(connection.getHeaderFields());
        }
    }
}

This merely dumps the HTTP headers. Sample output:

{null=[HTTP/1.0 200 OK], Date=[Tue, 11 Oct 2011 08:48:51 GMT],
Vary=[Accept-Encoding,X-Forwarded-Proto], Content-Length=[332],
Content-Encoding=[gzip], Content-Type=[text/xml; charset=utf-8],
X-Cache-Lookup=[MISS from sq38.wikimedia.org:80, MISS from
sq34.wikimedia.org:3128], Connection=[keep-alive], Server=[Apache],
X-Cache=[MISS from sq38.wikimedia.org, MISS from sq34.wikimedia.org],
X-Content-Type-Options=[nosniff], Cache-Control=[private]}
{null=[HTTP/1.0 200 OK], Date=[Tue, 11 Oct 2011 08:48:52 GMT],
Vary=[Accept-Encoding,X-Forwarded-Proto], Content-Length=[332],
Content-Encoding=[gzip], Content-Type=[text/xml; charset=utf-8],
X-Cache-Lookup=[MISS from sq64.wikimedia.org:80, MISS from
sq34.wikimedia.org:3128], Connection=[keep-alive], Server=[Apache],
X-Cache=[MISS from sq64.wikimedia.org, MISS from sq34.wikimedia.org],
X-Content-Type-Options=[nosniff], Cache-Control=[private]}
{null=[HTTP/1.0 200 OK], Date=[Tue, 11 Oct 2011 08:48:52 GMT],
Vary=[Accept-Encoding,X-Forwarded-Proto], Content-Length=[332],
Content-Encoding=[gzip], Content-Type=[text/xml; charset=utf-8],
X-Cache-Lookup=[MISS from sq64.wikimedia.org:80, MISS from
sq34.wikimedia.org:3128], Connection=[keep-alive], Server=[Apache],
X-Cache=[MISS from sq64.wikimedia.org, MISS from sq34.wikimedia.org],
X-Content-Type-Options=[nosniff], Cache-Control=[private]}
{null=[HTTP/1.0 200 OK], Date=[Tue, 11 Oct 2011 08:48:54 GMT],
Vary=[Accept-Encoding,X-Forwarded-Proto], Content-Length=[332],
Content-Encoding=[gzip], Content-Type=[text/xml; charset=utf-8],
X-Cache-Lookup=[MISS from sq65.wikimedia.org:80, MISS from
sq34.wikimedia.org:3128], Connection=[keep-alive], Server=[Apache],
X-Cache=[MISS from sq65.wikimedia.org, MISS from sq34.wikimedia.org],
X-Content-Type-Options=[nosniff], Cache-Control=[private]}
{null=[HTTP/1.0 200 OK], Date=[Tue, 11 Oct 2011 08:48:57 GMT],
Vary=[Accept-Encoding,X-Forwarded-Proto], Content-Length=[332],
Content-Encoding=[gzip], Content-Type=[text/xml; charset=utf-8],
X-Cache-Lookup=[MISS from sq64.wikimedia.org:80, MISS from
sq34.wikimedia.org:3128], Connection=[keep-alive], Server=[Apache],
X-Cache=[MISS from sq64.wikimedia.org, MISS from sq34.wikimedia.org],
X-Content-Type-Options=[nosniff], Cache-Control=[private]}
{null=[HTTP/1.0 200 OK], Date=[Tue, 11 Oct 2011 08:48:57 GMT],
Vary=[Accept-Encoding,X-Forwarded-Proto], Content-Length=[332],
Content-Encoding=[gzip], Content-Type=[text/xml; charset=utf-8],
X-Cache-Lookup=[MISS from sq74.wikimedia.org:80, MISS from
sq34.wikimedia.org:3128], Connection=[keep-alive], Server=[Apache],
X-Cache=[MISS from sq74.wikimedia.org, MISS from sq34.wikimedia.org],
X-Content-Type-Options=[nosniff], Cache-Control=[private]}
{null=[HTTP/1.0 200 OK], Date=[Tue, 11 Oct 2011 08:48:58 GMT],
Vary=[Accept-Encoding,X-Forwarded-Proto], Content-Length=[332],
Content-Encoding=[gzip], Content-Type=[text/xml; charset=utf-8],
X-Cache-Lookup=[MISS from sq60.wikimedia.org:80, MISS from
sq34.wikimedia.org:3128], Connection=[keep-alive], Server=[Apache],
X-Cache=[MISS from sq60.wikimedia.org, MISS from sq34.wikimedia.org],
X-Content-Type-Options=[nosniff], Cache-Control=[private]}
{null=[HTTP/1.0 200 OK], Date=[Tue, 11 Oct 2011 08:48:58 GMT],
Vary=[Accept-Encoding,X-Forwarded-Proto], Content-Length=[332],
Content-Encoding=[gzip], Content-Type=[text/xml; charset=utf-8],
X-Cache-Lookup=[MISS from sq37.wikimedia.org:80, MISS from
sq34.wikimedia.org:3128], Connection=[keep-alive], Server=[Apache],
X-Cache=[MISS from sq37.wikimedia.org, MISS from sq34.wikimedia.org],
X-Content-Type-Options=[nosniff], Cache-Control=[private]}
{null=[HTTP/1.0 200 OK], Date=[Tue, 11 Oct 2011 08:48:59 GMT],
Vary=[Accept-Encoding,X-Forwarded-Proto], Content-Length=[332],
Content-Encoding=[gzip], Content-Type=[text/xml; charset=utf-8],
X-Cache-Lookup=[MISS from sq66.wikimedia.org:80, MISS from
sq34.wikimedia.org:3128], Connection=[keep-alive], Server=[Apache],
X-Cache=[MISS from sq66.wikimedia.org, MISS from sq34.wikimedia.org],
X-Content-Type-Options=[nosniff], Cache-Control=[private]}
{null=[HTTP/1.0 200 OK], Date=[Tue, 11 Oct 2011 08:49:00 GMT],
Vary=[Accept-Encoding,X-Forwarded-Proto], Content-Length=[332],
Content-Encoding=[gzip], Content-Type=[text/xml; charset=utf-8],
X-Cache-Lookup=[MISS from sq65.wikimedia.org:80, MISS from
sq34.wikimedia.org:3128], Connection=[keep-alive], Server=[Apache],
X-Cache=[MISS from sq65.wikimedia.org, MISS from sq34.wikimedia.org],
X-Content-Type-Options=[nosniff], Cache-Control=[private]}
{null=[HTTP/1.0 200 OK], Date=[Tue, 11 Oct 2011 08:49:00 GMT],
Vary=[Accept-Encoding,X-Forwarded-Proto], Content-Length=[332],
Content-Encoding=[gzip], Content-Type=[text/xml; charset=utf-8],
X-Cache-Lookup=[MISS from sq66.wikimedia.org:80, MISS from
sq34.wikimedia.org:3128], Connection=[keep-alive], Server=[Apache],
X-Cache=[MISS from sq66.wikimedia.org, MISS from sq34.wikimedia.org],
X-Content-Type-Options=[nosniff], Cache-Control=[private]}
{null=[HTTP/1.0 200 OK], Date=[Tue, 11 Oct 2011 08:49:02 GMT],
Vary=[Accept-Encoding,X-Forwarded-Proto], Content-Length=[332],
Content-Encoding=[gzip], Content-Type=[text/xml; charset=utf-8],
X-Cache-Lookup=[MISS from sq77.wikimedia.org:80, MISS from
sq34.wikimedia.org:3128], Connection=[keep-alive], Server=[Apache],
X-Cache=[MISS from sq77.wikimedia.org, MISS from sq34.wikimedia.org],
X-Content-Type-Options=[nosniff], Cache-Control=[private]}
{null=[HTTP/1.0 200 OK], Date=[Tue, 11 Oct 2011 08:49:04 GMT],
Vary=[Accept-Encoding,X-Forwarded-Proto], Content-Length=[332],
Content-Encoding=[gzip], Content-Type=[text/xml; charset=utf-8],
X-Cache-Lookup=[MISS from sq37.wikimedia.org:80, MISS from
sq34.wikimedia.org:3128], Connection=[keep-alive], Server=[Apache],
X-Cache=[MISS from sq37.wikimedia.org, MISS from sq34.wikimedia.org],
X-Content-Type-Options=[nosniff], Cache-Control=[private]}
{null=[HTTP/1.0 200 OK], Date=[Tue, 11 Oct 2011 08:49:05 GMT],
Vary=[Accept-Encoding,X-Forwarded-Proto], Content-Length=[332],
Content-Encoding=[gzip], Content-Type=[text/xml; charset=utf-8],
X-Cache-Lookup=[MISS from sq39.wikimedia.org:80, MISS from
sq34.wikimedia.org:3128], Connection=[keep-alive], Server=[Apache],
X-Cache=[MISS from sq39.wikimedia.org, MISS from sq34.wikimedia.org],
X-Content-Type-Options=[nosniff], Cache-Control=[private]}
{null=[HTTP/1.0 200 OK], Date=[Tue, 11 Oct 2011 08:49:06 GMT],
Vary=[Accept-Encoding,X-Forwarded-Proto], Content-Length=[332],
Content-Encoding=[gzip], Content-Type=[text/xml; charset=utf-8],
X-Cache-Lookup=[MISS from sq40.wikimedia.org:80, MISS from
sq34.wikimedia.org:3128], Connection=[keep-alive], Server=[Apache],
X-Cache=[MISS from sq40.wikimedia.org, MISS from sq34.wikimedia.org],
X-Content-Type-Options=[nosniff], Cache-Control=[private]}
{null=[HTTP/1.0 200 OK], Date=[Tue, 11 Oct 2011 08:49:06 GMT],
Vary=[Accept-Encoding,X-Forwarded-Proto], Content-Length=[332],
Content-Encoding=[gzip], Content-Type=[text/xml; charset=utf-8],
X-Cache-Lookup=[MISS from sq62.wikimedia.org:80, MISS from
sq34.wikimedia.org:3128], Connection=[keep-alive], Server=[Apache],
X-Cache=[MISS from sq62.wikimedia.org, MISS from sq34.wikimedia.org],
X-Content-Type-Options=[nosniff], Cache-Control=[private]}
{null=[HTTP/1.0 200 OK], Date=[Tue, 11 Oct 2011 08:49:07 GMT],
Vary=[Accept-Encoding,X-Forwarded-Proto], Content-Length=[759],
Content-Type=[text/xml; charset=utf-8], X-Cache-Lookup=[MISS from
sq72.wikimedia.org:80, MISS from sq34.wikimedia.org:3128],
Connection=[keep-alive], Server=[Apache], X-Cache=[MISS from
sq72.wikimedia.org, MISS from sq34.wikimedia.org],
X-Content-Type-Options=[nosniff], Cache-Control=[private]}
{null=[HTTP/1.0 200 OK], Date=[Tue, 11 Oct 2011 08:49:07 GMT],
Vary=[Accept-Encoding,X-Forwarded-Proto], Content-Length=[332],
Content-Encoding=[gzip], Content-Type=[text/xml; charset=utf-8],
X-Cache-Lookup=[MISS from sq75.wikimedia.org:80, MISS from
sq34.wikimedia.org:3128], Connection=[keep-alive], Server=[Apache],
X-Cache=[MISS from sq75.wikimedia.org, MISS from sq34.wikimedia.org],
X-Content-Type-Options=[nosniff], Cache-Control=[private]}
{null=[HTTP/1.0 200 OK], Date=[Tue, 11 Oct 2011 08:49:08 GMT],
Vary=[Accept-Encoding,X-Forwarded-Proto], Content-Length=[332],
Content-Encoding=[gzip], Content-Type=[text/xml; charset=utf-8],
X-Cache-Lookup=[MISS from sq72.wikimedia.org:80, MISS from
sq34.wikimedia.org:3128], Connection=[keep-alive], Server=[Apache],
X-Cache=[MISS from sq72.wikimedia.org, MISS from sq34.wikimedia.org],
X-Content-Type-Options=[nosniff], Cache-Control=[private]}
{null=[HTTP/1.0 200 OK], Date=[Tue, 11 Oct 2011 08:49:09 GMT],
Vary=[Accept-Encoding,X-Forwarded-Proto], Content-Length=[332],
Content-Encoding=[gzip], Content-Type=[text/xml; charset=utf-8],
X-Cache-Lookup=[MISS from sq66.wikimedia.org:80, MISS from
sq34.wikimedia.org:3128], Connection=[keep-alive], Server=[Apache],
X-Cache=[MISS from sq66.wikimedia.org, MISS from sq34.wikimedia.org],
X-Content-Type-Options=[nosniff], Cache-Control=[private]}
{null=[HTTP/1.0 200 OK], Date=[Tue, 11 Oct 2011 08:49:11 GMT],
Vary=[Accept-Encoding,X-Forwarded-Proto], Content-Length=[332],
Content-Encoding=[gzip], Content-Type=[text/xml; charset=utf-8],
X-Cache-Lookup=[MISS from sq72.wikimedia.org:80, MISS from
sq34.wikimedia.org:3128], Connection=[keep-alive], Server=[Apache],
X-Cache=[MISS from sq72.wikimedia.org, MISS from sq34.wikimedia.org],
X-Content-Type-Options=[nosniff], Cache-Control=[private]}
{null=[HTTP/1.0 200 OK], Date=[Tue, 11 Oct 2011 08:49:13 GMT],
Vary=[Accept-Encoding,X-Forwarded-Proto], Content-Length=[759],
Content-Type=[text/xml; charset=utf-8], X-Cache-Lookup=[MISS from
sq60.wikimedia.org:80, MISS from sq34.wikimedia.org:3128],
Connection=[keep-alive], Server=[Apache], X-Cache=[MISS from
sq60.wikimedia.org, MISS from sq34.wikimedia.org],
X-Content-Type-Options=[nosniff], Cache-Control=[private]}
{null=[HTTP/1.0 200 OK], Date=[Tue, 11 Oct 2011 08:49:14 GMT],
Vary=[Accept-Encoding,X-Forwarded-Proto], Content-Length=[759],
Content-Type=[text/xml; charset=utf-8], X-Cache-Lookup=[MISS from
sq60.wikimedia.org:80, MISS from sq34.wikimedia.org:3128],
Connection=[keep-alive], Server=[Apache], X-Cache=[MISS from
sq60.wikimedia.org, MISS from sq34.wikimedia.org],
X-Content-Type-Options=[nosniff], Cache-Control=[private]}
{null=[HTTP/1.0 200 OK], Date=[Tue, 11 Oct 2011 08:49:14 GMT],
Vary=[Accept-Encoding,X-Forwarded-Proto], Content-Length=[332],
Content-Encoding=[gzip], Content-Type=[text/xml; charset=utf-8],
X-Cache-Lookup=[MISS from sq62.wikimedia.org:80, MISS from
sq34.wikimedia.org:3128], Connection=[keep-alive], Server=[Apache],
X-Cache=[MISS from sq62.wikimedia.org, MISS from sq34.wikimedia.org],
X-Content-Type-Options=[nosniff], Cache-Control=[private]}
{null=[HTTP/1.0 200 OK], Date=[Tue, 11 Oct 2011 08:49:15 GMT],
Vary=[Accept-Encoding,X-Forwarded-Proto], Content-Length=[332],
Content-Encoding=[gzip], Content-Type=[text/xml; charset=utf-8],
X-Cache-Lookup=[MISS from sq73.wikimedia.org:80, MISS from
sq34.wikimedia.org:3128], Connection=[keep-alive], Server=[Apache],
X-Cache=[MISS from sq73.wikimedia.org, MISS from sq34.wikimedia.org],
X-Content-Type-Options=[nosniff], Cache-Control=[private]}

This wasn't an issue prior to the 1.18 upgrade on Wikimedia.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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