Page MenuHomePhabricator

wgPageContentModel not updated when moving a page
Closed, DuplicatePublic

Description

https://en.wikipedia.org/wiki/User:Lixxx235/signature for example. This could be misused to create an article and move to article space and the creator would [[WP:OWN]] the page as no one except them and admins could edit.

Event Timeline

Technical13 raised the priority of this task from to Needs Triage.
Technical13 updated the task description. (Show Details)
Technical13 added a project: MediaWiki-General.
Technical13 subscribed.

I was able to reproduce this but only within the same namespace. Moving a test page to article space cleared the restriction.

https://en.wikipedia.org/wiki/Wikipedia:T89538 is an example of it working cross namespace. Protection doesn't seem to go (or does it, I wouldn't be able to tell unless I checked with alt account or logged out which is too much work from mobile) but content model follows which is what this ticket is about.

https://en.wikipedia.org/wiki/Wikipedia:T89538 is an example of it working cross namespace. Protection doesn't seem to go (or does it, I wouldn't be able to tell unless I checked with alt account or logged out which is too much work from mobile) but content model follows which is what this ticket is about.

This is because $wgContentHandlerUseDB = true.