Page MenuHomePhabricator

Non-existing media links are not redlinks in Parsoid
Closed, ResolvedPublicBUG REPORT

Description

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

Add a link to a non-existing file on a wiki page; render it with and without Parsoid.
Current example: https://en.wikipedia.org/w/index.php?title=User:IHurbainPalatin_(WMF)/sandbox&useparsoid=0 vs https://en.wikipedia.org/w/index.php?title=User:IHurbainPalatin_(WMF)/sandbox&useparsoid=1

This is also currently visible on https://pt.wikivoyage.org/wiki/Eti%C3%B3pia

What happens?:

The legacy parser link is a red link pointing to Special:Upload.
The Parsoid link is a blue link pointing to Special:Filepath.

What should have happened instead?:

The Parsoid link should be a red link pointing to the same target as the legacy parser.

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

From a perfunctory test, this triggers both with and without Commons integration.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
ABreault-WMF triaged this task as Medium priority.
ABreault-WMF moved this task from Backlog to In Progress on the Content-Transform-Team-WIP board.

Change #1186100 had a related patch set uploaded (by Arlolra; author: Arlolra):

[mediawiki/services/parsoid@master] [WIP] Add redlinks colour to broken media links

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

Change #1186100 merged by jenkins-bot:

[mediawiki/services/parsoid@master] Add redlinks colour to broken media links

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

Change #1187841 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.22.0-a21

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

Change #1187841 merged by jenkins-bot:

[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.22.0-a21

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