Page MenuHomePhabricator

Article::generateReason returns wrong result when all users except one are hidden
Open, LowPublic

Description

Steps to reproduce:

  1. Create Account EvilUser
  2. Create page A as EvilUser
  3. Login as Oversighter
  4. Block & Hide EvilUser
  5. User XY edits page A
  6. Go to the deletion form of page A
  7. See auto-reason: "content was: 'old content' (and the only contributor was '[[Special:Contributions/XY|XY]]')". Even though EvilUser created the page and user XY probably just requested deletion.

This is somewhat connected to T24627: PHP notice when deleting a page only a hidden user has edited.

I don't think this is important, I just want to document this bug.


Version: unspecified
Severity: minor

Details

Reference
bz22999

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:05 PM
bzimport set Reference to bz22999.
bzimport added a subscriber: Unknown Object (MLST).
DannyS712 subscribed.

Article::generateReason retrieves the reason from a getAutoDeleteReason in the relevant content handler

Change 662080 had a related patch set uploaded (by SarthakKundra; owner: SarthakKundra):
[labs/tools/VideoCutTool@master] Refactor:: Moved formatTime and decodeTime functions to utils/time.js

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

(patch was unrelated and tagged here by mistake)