Force user id and actor id to 0 when loading from remote wikis
authorBill Pirkle <bpirkle@wikimedia.org>
Fri, 3 May 2019 01:57:40 +0000 (20:57 -0500)
committerBill Pirkle <bpirkle@wikimedia.org>
Mon, 6 May 2019 14:08:51 +0000 (09:08 -0500)
commitd4b72572a6fd6b7549edb1fe123ef869e3db0e8a
tree17e44f086d35f0345e1bf4de93f25820bc8444eb
parent11488c2d7779117c56cfd6af96f99b5d0180949c
Force user id and actor id to 0 when loading from remote wikis

Stop-gap solution for the problem described in T222212.
Force the User ID and Actor ID to zero for users loaded
from the database of another wiki, to prevent subtle data
corruption and confusing failure modes.

Bug: T222381
Change-Id: Ic585f972d61da136744d080df13d8eb1ecd04cf5
includes/Revision/RevisionStore.php
includes/user/User.php
tests/phpunit/includes/user/UserTest.php