Page MenuHomePhabricator

Non-autoconfirmed users get no CAPTCHA and cannot save external links with DiscussionTools new topic tool
Open, Needs TriagePublicBUG REPORT

Description

Non-autoconfirmed users cannot save external links with the new topic tool from DiscussionTools.
If you write an external link and click the blue "Add topic" button then it turns grey for a second and there are moving diagonal lines in the text area. Nothing else happens. There is no CAPTCHA or error message and nothing is saved.

It was reported 9 September 2024 at https://en.wikipedia.org/w/index.php?title=Wikipedia:Teahouse&oldid=1245763610#Some_of_my_students_cannot_post_external_links_to_my_talk_page

Screenshot from https://en.wikipedia.org/wiki/Wikipedia_talk:Sandbox attached. Made in Firefox with Vector 2022 in the non-autoconfirmed account https://en.wikipedia.org/wiki/User:PrimeHunter3. The tested link is https://example.com. The same happens for IP's.

External link error.png (611×958 px, 56 KB)

Captchas appear as expected with the reply tool.

Event Timeline

DLynch renamed this task from Non-autoconfirmed users get no CAPTCHA and cannot save external links with DiscussionTools to Non-autoconfirmed users get no CAPTCHA and cannot save external links with DiscussionTools new topic tool.Sep 17 2024, 12:11 AM
DLynch updated the task description. (Show Details)

This was introduced by https://gerrit.wikimedia.org/r/c/mediawiki/extensions/DiscussionTools/+/1068047

It was actually breaking things slightly more expansively than captchas -- any save errors from the new topic tool would just not be shown. Captchas are just the most easily-triggerable save error.

Change #1073304 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/DiscussionTools@master] Don't startPoll if there's not a subscribable heading, i.e. New Topic

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

Change #1073304 merged by jenkins-bot:

[mediawiki/extensions/DiscussionTools@master] Don't startPoll if there's not a subscribable heading, i.e. New Topic

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

Checked on Beta cluster, looks like with new topic tool a Non-autoconfirmed user is still not getting CAPTCHA when adding an external link and but it is getting saved.

Non-autoconfirmed user is still not getting CAPTCHA when adding an external link and but it is getting saved.

This sounds like an important thing to fix.

In our production (and beta cluster) configuration, you'll only get a CAPTCHA if adding a new external link (linking to a website that isn't yet linked from the page you're editing). That means you should have seen a CAPTCHA when making this edit, but not when making this, this or this one. Do you recall if that's what happened, or can you test it again please? I just tested and got a CAPTCHA when adding a new external link using the new topic tool (I didn't save the edit).

In our production (and beta cluster) configuration, you'll only get a CAPTCHA if adding a new external link (linking to a website that isn't yet linked from the page you're editing). That means you should have seen a CAPTCHA when making this edit, but not when making this, this or this one. Do you recall if that's what happened, or can you test it again please? I just tested and got a CAPTCHA when adding a new external link using the new topic tool (I didn't save the edit).

I re-tested it. Yes, when I am adding a new external link I am getting a CAPTCHA as expected.