Page MenuHomePhabricator

External links should never be invalid
Closed, ResolvedPublic2 Estimated Story Points

Description

  1. Open the insert-link dialog.
  2. Enter https://example.org/?a=b|c as the 'Target page or URL'.
  3. Note that it displays an 'invalid title' message.
  4. Select the 'To an external web page' radio button.
  5. The invalid message should disappear, and the insert button be enabled, but neither happens and it's not possible to insert the link.

It works correctly if the external radio button is selected before the title is entered, and also if the dialog is closed and then opened again.

Event Timeline

Restricted Application added a subscriber: Aklapper. ยท View Herald TranscriptOct 13 2021, 2:37 AM

thanks for writing ticket! I agree that it should work as specified and not how it is currently behaving.
question: is this broken functionality something that our changes introduced?

Yep, previously an external link with a pipe in it worked fine.

KSiebert set the point value for this task to 2.Nov 23 2021, 9:15 AM
KSiebert moved this task from Needs Discussion to Up Next (May 20-June 3) on the Community-Tech board.
Samwilson changed the task status from Open to In Progress.Nov 27 2021, 12:46 AM
Samwilson claimed this task.

Change 742586 had a related patch set uploaded (by Samwilson; author: Samwilson):

[mediawiki/extensions/WikiEditor@master] Prevent external links from showing as invalid

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

Change 742586 merged by jenkins-bot:

[mediawiki/extensions/WikiEditor@master] Prevent external links from showing as invalid

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

Change 744709 had a related patch set uploaded (by Samwilson; author: Samwilson):

[mediawiki/extensions/WikiEditor@master] Move insert-link mode constants to a better location

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

dom_walden subscribed.

I can no longer reproduce the bug in the description.

There is one unmerged change here so I am going to move into Review so it is not missed.

Notes for QA: I think the unmerged changes look unlikely to cause any problems. I don't think this needs to be put back into QA. Can go straight to Product sign-off or Done after the code has been reviewed and merged.

Change 744709 merged by jenkins-bot:

[mediawiki/extensions/WikiEditor@master] Move insert-link mode constants to a better location

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

I can no longer reproduce the bug in the description. + 1