Last modified: 2013-09-25 14:16:29 UTC
Was writing tests for testEditSection and noticed this... Setting §ion=300 on [[User:Legoktm]] (no sections at all) returns: { "edit": { "result": "Success", "pageid": 14989378, "title": "User:Legoktm", "contentmodel": "wikitext", "nochange": "" } } It should have thrown an error of "nosuchsection".
I'm not entirely sure that this is a regression; if it is, it's not a recent one (probably dating back to when ContentHandler was introduced, although I haven't tested back that far). But yes, this should be fixed.
Looking at the code, I don't see any sign of a regression here.
Change 83833 had a related patch set uploaded by Anomie: API: Check for nosuchsection in all code paths https://gerrit.wikimedia.org/r/83833
Change 83833 merged by jenkins-bot: API: Check for nosuchsection in all code paths https://gerrit.wikimedia.org/r/83833
Change merged. It should be deployed to WMF wikis with 1.22wmf19, see https://www.mediawiki.org/wiki/MediaWiki_1.22/Roadmap for the schedule.