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

       Web browser: ---
             Bug #: 42166
           Summary: Should not return 200 on errors by default
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: ResourceLoader
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---


So, we had the following incident a few moments ago:
An Apache on the fleet was misconfigured, with wrong permissions in at least
/wmf-config/.

Random bits hits for some CSS (e.g. for it.wp) ended up on this Apache, which
returned a page full of CSS comments with DBConnectionError ('DB connection
error: Can't connect to local MySQL server through socket
'/var/run/mysqld/mysqld.sock' (2) (localhost)' in
/usr/local/apache/common-local/php-1.21wmf3/includes/db/Database.php:797),
since no configuration, database or otherwise, was readable or defined.

The problem is that this CSS full of exceptions and no actual content was
returned with a 200 status code and subsequently cached in Squid and Varnish.
Fortunately the TTL for those is short, and the site recovered quickly.

Could you please adjust it so that 500s are raised on such cases?

-- 
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