Page MenuHomePhabricator

Stuck in FancyCaptcha challenge loop on VisualEditor
Closed, ResolvedPublicBUG REPORT

Description

What is the problem?

On testwiki on desktop VE, when I attempt to publish I am sometimes met with a FancyCaptcha challenge and, after completing successfully, I see another (and another and so on).

Sometimes I also see an hCaptcha challenge that I have to complete before I see the FancyCaptcha challenge.

I have seen it happen both when triggering AbuseFilter and when not.

I just started to see this at about 1300 UTC today.

Only on desktop VE, not any other interface (although I haven't tried DiscussionTools).

Steps to reproduce problem
  1. https://test.wikipedia.org/wiki/Special:Random
  2. Switch to desktop (if not already)
  3. Open VisualEditor
  4. Make an edit (you may need to trigger AbuseFilter by typing showcaptcha in the edit summary)
  5. Attempt to publish
Environment

Browser: Chrome 72. Chromium 147.
Wiki(s): https://test.wikipedia.org MediaWiki 1.47.0-wmf.3 (rMW00ca1f659833) 01:09, 19 May 2026.
Editor: VisualEditor – (a7f2cdb) 00:58, 19 May 2026.

Screenshots

Event Timeline

Dreamy_Jazz triaged this task as High priority.EditedTue, May 19, 4:39 PM

The above suggests that this isn't specific to VisualEditor but is the server deciding to serve a FancyCaptcha

Therefore, this probably will affect more than just VisualEditor and probably needs to be investigated soon. I am going AFK now so can't look into this further

Change #1289937 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/core@master] Revert "ApiEditPage: Update request in main context before calling attemptSave()"

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

Change #1289938 had a related patch set uploaded (by Kosta Harlan; author: Dreamy Jazz):

[mediawiki/core@wmf/1.47.0-wmf.3] Revert "ApiEditPage: Update request in main context before calling attemptSave()"

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

Change #1289937 merged by jenkins-bot:

[mediawiki/core@master] Revert "ApiEditPage: Update request in main context before calling attemptSave()"

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

Change #1289938 merged by jenkins-bot:

[mediawiki/core@wmf/1.47.0-wmf.3] Revert "ApiEditPage: Update request in main context before calling attemptSave()"

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

Mentioned in SAL (#wikimedia-operations) [2026-05-20T12:17:48Z] <kharlan@deploy1003> Started scap sync-world: Backport for [[gerrit:1289938|Revert "ApiEditPage: Update request in main context before calling attemptSave()" (T426751)]]

Mentioned in SAL (#wikimedia-operations) [2026-05-20T12:19:42Z] <kharlan@deploy1003> kharlan: Backport for [[gerrit:1289938|Revert "ApiEditPage: Update request in main context before calling attemptSave()" (T426751)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

@dom_walden can you please try to reproduce this issue again?

Mentioned in SAL (#wikimedia-operations) [2026-05-20T12:26:25Z] <kharlan@deploy1003> Finished scap sync-world: Backport for [[gerrit:1289938|Revert "ApiEditPage: Update request in main context before calling attemptSave()" (T426751)]] (duration: 08m 37s)

@dom_walden can you please try to reproduce this issue again?

I can no longer reproduce on testwiki. I have tried making normal edits which trigger the hCaptcha challenge and those which trigger AF (including seeing the hCaptcha challenge twice). I can complete the challenge(s) and save the edit.

@dom_walden can you please try to reproduce this issue again?

I can no longer reproduce on testwiki. I have tried making normal edits which trigger the hCaptcha challenge and those which trigger AF (including seeing the hCaptcha challenge twice). I can complete the challenge(s) and save the edit.

Thanks for confirming!