Page MenuHomePhabricator

Create temporary user on undo/restore in Wikibase
Closed, ResolvedPublic

Description

Steps to reproduce:

  • Be on a Wikibase repo wiki with IP Masking enabled
  • Be logged out (e.g. in a private window)
  • Go to the history page of an Entity (e.g. an Item)
  • Try to undo or restore a revision
  • Try to save page

Shorter reproduction steps:

Currently, this crashes with a CannotCreateActorException because we didn’t implement temp account support in SubmitEntityAction yet:

image.png (711×1 px, 238 KB)

Event Timeline

In my local testing, I can reproduce the issue with EntitySchema, undo/restore and temp accounts. But it seems like with @Lucas_Werkmeister_WMDE's changes in T356148, this works fine. Is that also what you would expect / experience, Lucas?

Are you sure you tested Wikibase undo/restore? It shouldn’t be affected by any EntitySchema changes. (I just noticed it while working on those because I was looking for other WatchlistManager callers, IIRC.)

Ah yeah. I was checking with an EntitySchema. I didn't try on an item.

Change #1062727 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/Wikibase@master] WIP: Support temporary users in SubmitEntityAction

https://gerrit.wikimedia.org/r/1062727

Change #1062727 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Support temporary users in SubmitEntityAction

https://gerrit.wikimedia.org/r/1062727