Page MenuHomePhabricator

Trying to delete individual versions in the file namespace (action=delete&oldimage=) deletes all versions
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

2023-06-30_014510.png (1×2 px, 148 KB)

What happens?:

  • All page history is deleted
  • All file history is deleted

What should have happened instead?:

  • No page history should be deleted
  • Only that particular old version of the file should be deleted

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

I think this is a Regression. Might want to do a git bisect to narrow it down.

Change 934452 had a related patch set uploaded (by Func; author: Func):

[mediawiki/core@master] DeleteAction: Call setAction for file revision delete

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

Novem_Linguae triaged this task as Unbreak Now! priority.Jun 30 2023, 7:49 PM
Novem_Linguae added a project: Regression.

Major regression that made it to production. I think these usually get UBN. Feel free to lower priority if I'm incorrect. This might need a backport too.

Nardog renamed this task from Trying to delete individual revisions in the file namespace (action=delete&oldimage=) deletes all revisions to Trying to delete individual versions in the file namespace (action=delete&oldimage=) deletes all versions.Jun 30 2023, 7:57 PM
Nardog updated the task description. (Show Details)

Change 934608 had a related patch set uploaded (by Hashar; author: Func):

[mediawiki/core@wmf/1.41.0-wmf.15] DeleteAction: Call setAction for file revision delete

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

Change 934452 merged by jenkins-bot:

[mediawiki/core@master] DeleteAction: Call setAction for file revision delete

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

The fix https://gerrit.wikimedia.org/r/c/mediawiki/core/+/934452 is merged in the master branch and should be testable on https://wikitech.wikimedia.org/wiki/Beta_Cluster.

I have poked the private mediawiki_security IRC channel and our internal ops-l mailling list about it to get an approval by SRE (per Deployments/Emergencies). I gave my point of contact and can do the deployment itself (scap backport 934608).

We are doing the deployment to production.

Change 934608 merged by jenkins-bot:

[mediawiki/core@wmf/1.41.0-wmf.15] DeleteAction: Call setAction for file revision delete

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

Mentioned in SAL (#wikimedia-operations) [2023-07-01T08:11:05Z] <hashar@deploy1002> Started scap: Backport for [[gerrit:934608|DeleteAction: Call setAction for file revision delete (T340821)]]

Mentioned in SAL (#wikimedia-operations) [2023-07-01T08:12:41Z] <hashar@deploy1002> hashar: Backport for [[gerrit:934608|DeleteAction: Call setAction for file revision delete (T340821)]] synced to the testservers: mwdebug2001.codfw.wmnet, mwdebug1001.eqiad.wmnet, mwdebug1002.eqiad.wmnet, mwdebug2002.codfw.wmnet

Mentioned in SAL (#wikimedia-operations) [2023-07-01T08:20:23Z] <hashar@deploy1002> Finished scap: Backport for [[gerrit:934608|DeleteAction: Call setAction for file revision delete (T340821)]] (duration: 09m 17s)

Novem_Linguae assigned this task to Func.
Novem_Linguae removed a project: Patch-For-Review.

Works on testwiki. Thanks for the emergency backport. Enjoy your weekend :)