Page MenuHomePhabricator

{{Infobox airport}} is adapted incorrectly from English to Hebrew
Closed, ResolvedPublic

Description

To reproduce, translate Pokhara Airport from English to Hebrew.

In Firefox template adaptation behaves very strangely. It is adapted twice in the translation interface, and it's not actually published at all.

In Chrome the adaptation interface appears to work, but it is published as a substituted wiki syntax blob and not as an actual template, even though the {{Infobox airport}} template has a Hebrew version with TemplateData. What's even more worrying is that the blob includes CX elements, like <div class="cx-overlay"><div class="cx-spinner">.

This looks similar to a bug that causes the big outage recently, so I'm raising the priority.

Event Timeline

Amire80 triaged this task as High priority.Jun 28 2017, 6:23 AM

Change 361853 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/extensions/ContentTranslation@master] Templates: Filter out autogenerated nodes before copying data-mw

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

I could not reproduce leaked code. May be that came from FF translation attempt. This fix is only for Chrome producing wikitext blob instead of template. Will try to reproduce the FF issue now.

Change 361853 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] Templates: Filter out autogenerated nodes before copying data-mw

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