Page MenuHomePhabricator

MediaWiki $wgMaxArticleSize is not enforced during file/page creation
Open, Needs TriagePublic

Description

During file uploading and page creation, maximum article size is not enforced and can be exceeded as demonstrated by example [1] (many others) on Commons Wikimedia.

Example 1 when editing original revision displays:
"Error: The text you have submitted is 2,106.545 kilobytes long, which is longer than the maximum of 2,048 kilobytes. It cannot be saved."

[1] https://commons.wikimedia.org/w/index.php?title=File:Brick_streets_of_Pullman_(36930870361).jpg&action=history

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 4 2018, 6:56 AM
Jcb added a subscriber: Jcb.Mar 4 2018, 10:01 PM
Reedy renamed this task from MediaWiki $WgMaxArticleSize is not enforced during file/page creation to MediaWiki $wgMaxArticleSize is not enforced during file/page creation.Mar 5 2018, 1:20 AM
Jeff_G added a subscriber: Jeff_G.Mar 5 2018, 1:52 AM
Fae added a subscriber: Fae.Mar 5 2018, 10:08 AM

Has anyone seen the same behaviour when posting via the API, or does this not happen?

Jeff_G added a comment.Mar 5 2018, 1:24 PM

I mentioned this task at c:COM:VP#Files with too big wikitext. We need sanity checking on both Flickr2Commons and whatever it uses to upload.

Nemo_bis added a subscriber: Nemo_bis.EditedFeb 15 2020, 1:23 PM

Has anyone seen the same behaviour when posting via the API, or does this not happen?

The title of this report is incorrect if taken literally: there are some ways one can circumvent the limit, but it's not about page creation in general.

For instance Wikibase did not respect the limit until T119753 was fixed and I think many years ago we fixed this bug (tilde expansion not being counted) but I can't find the report right now:
https://pvx.fandom.com/wiki/User_talk:PVX-Misfate?offset=20071116000000&limit=20&action=history