Page MenuHomePhabricator

Round-trip testing regression with language converter markup
Closed, ResolvedPublic

Description

From RT test run on 2025-10-31 on https://zh.wikipedia.org/wiki/%E6%B5%B7%E5%BA%95%E7%86%B1%E6%B3%89 with markup like:

-{zh-tw:[[File:Aldwych Map Mockup (zh-tw).png|thumb|left|220px|奧德維奇站在倫敦地 鐵中的位置]]; zh-hk:[[File:Aldwych Map Mockup (zh-hk).png|thumb|left|220px|奧德維奇站在倫敦地鐵中的位置]]; zh-cn:[[File:Aldwych Map Mockup (zh-hans).png|thumb|left|220px|奥德维奇站在伦敦地铁中的位置]];}-

and

-{[[A#B|C]]}-

Root cause is that the tokenizer is being *extremely* permissive in what it tries to allow as a language converter flag.

The pages under investigation were:

zhwiki:阿尔德维奇站
zhwiki:海底熱泉

Event Timeline

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

[mediawiki/services/parsoid@master] Language Converter: parse embedded wikilinks and images correctly

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

Should T392347 be merged here? That issue is not resolved with Parsoid 0.23.0-a16.2. Sorry, misunderstood the branch model.

Change #1200388 merged by jenkins-bot:

[mediawiki/services/parsoid@master] Language Converter: parse embedded wikilinks and images correctly

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

Change #1242436 had a related patch set uploaded (by Isabelle Hurbain-Palatin; author: Isabelle Hurbain-Palatin):

[mediawiki/vendor@master] Bump wikimedia/parsoid to V0.23.0-a17

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

Change #1242436 abandoned by Isabelle Hurbain-Palatin:

[mediawiki/vendor@master] Bump wikimedia/parsoid to V0.23.0-a17

Reason:

wrong tag

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

Change #1242450 had a related patch set uploaded (by Isabelle Hurbain-Palatin; author: Isabelle Hurbain-Palatin):

[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.23.0-a17

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

Change #1242450 merged by jenkins-bot:

[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.23.0-a17

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

MSantos triaged this task as Medium priority.Mar 5 2026, 3:23 PM