Wikimedia
Make MediaWiki's import process respect the maximum article size
The popular wiki platform, MediaWiki, powers a wide range of collaborative editing projects, such as Wikipedia and Wikivoyage, as well as many internal corporate wikis and other sites.
When using MediaWiki's import tool to load an XML dump, it is possible to import a page that exceeds the maximum allowed article size, set by the configuration setting $wgMaxArticleSize
(see MediaWiki manual page). This could cause database errors or poor server performance.
Your task is to make the import code honor $wgMaxArticleSize
when importing revisions.
The code can be found in the file includes/Import.php
in the mediawiki/core
Git repository. Read https://www.mediawiki.org/wiki/Gerrit for more details on submitting your code and the review process.
Task tags
Students who completed this task
Georggi