https://bugzilla.wikimedia.org/show_bug.cgi?id=37140
Web browser: --- Bug #: 37140 Summary: action=raw should not output an HTML error page for ctype=text/javascript and text/css Product: MediaWiki Version: 1.20-git Platform: All OS/Version: All Status: NEW Severity: normal Priority: Unprioritized Component: General/Unknown AssignedTo: wikibugs-l@lists.wikimedia.org ReportedBy: krinklem...@gmail.com Classification: Unclassified Mobile Platform: --- Created attachment 10659 --> https://bugzilla.wikimedia.org/attachment.cgi?id=10659 Screenshot of JavaScript errors produced by action=raw when viewing a regular page When the database is unavailable, action=edit and other actions that use the master database produce a "Database error" page with the famous text: > Sorry! This site is experiencing technical difficulties. > [search] etc. However for for action=raw&ctype=text/javascript this shouldn't happen. Just like it has a special casing to output /* Empty */ in certain cases, it should output a comment instead of an HTML error page so that there are no javascript errors like this. Aside from the broader issue, specifically in case of a db-master failure one could consider to use the slave DB for this, but that may not be a good idea since action=raw should always output the latest content and should be reliable to use as input for editing (which is what it was originally intended for). -- 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 Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l