Page MenuHomePhabricator

[Import/export compatibility] Special:Import and importDump.php should ignore unrecognized tags
Closed, ResolvedPublic

Description

Quoting Chad on Ie8783e87: «Really, Import should be fixed so it doesn't explode on unrecognized tags :(».
And the fix should probably be backported to all previous releases.
(I've no idea if we have other import/export backwards compatibility problems.)


Version: 1.16.x
Severity: enhancement

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:52 AM
bzimport set Reference to bz41938.
bzimport added a subscriber: Unknown Object (MLST).

It's not a regression, it's always been this way :(

As commented in the change, the Import format was rewritten in 1.17, and I don't think it explodes on unrecognized tags from that version on.
As our last supported version is 1.18, I think we can close this bug after adding tests (and verifying they pass).

A parser test is not relevant to this bug.

Per Platonides, I don't think Import blows up on unexpected tags nowadays; I think it just silently ignores them (for better or worse).

This just needs some manual testing and unit tests.

Change 262336 had a related patch set uploaded (by Georggi199):
Tests: Reflect recent changes to MediaWiki import structure

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

Change 262435 had a related patch set uploaded (by Georggi199):
PHPUnit: Added test for unknown tags

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

Change 262336 merged by jenkins-bot:
Tests: Reflect recent changes to MediaWiki import structure

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

Change 262435 merged by jenkins-bot:
PHPUnit: Added test for unknown tags

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

TTO assigned this task to Georggi199.
TTO removed a project: Patch-For-Review.
TTO set Security to None.
TTO removed subscribers: gerritbot, wikibugs-l-list.

Another age-old import/export task solved by a Google Code-In student :)