Make XmlDumpwriter resilient to blob store corruption.
authordaniel <dkinzler@wikimedia.org>
Tue, 23 Jul 2019 11:23:41 +0000 (13:23 +0200)
committerdaniel <dkinzler@wikimedia.org>
Tue, 23 Jul 2019 11:59:57 +0000 (13:59 +0200)
commit30bb36f210e562af9ce0ecb2c8c0e39f69195510
tree6216529665cc06bf7b0cbac920d71c970b339018
parent6aacbeb6e880a260e4757d807df68f8d1184c012
Make XmlDumpwriter resilient to blob store corruption.

In the WMF databases, we have several revisions for which we cannot
load the content. They typically (but not necessarily) have
content_address = "tt:0" and content_sha1 = "" and rev_sha1 = ""
and content_size = 0 and rev_len = 0.

This patch makes sure we can still generate dumps in the presence of
such revisions.

Bug: T228720
Change-Id: Iaadad44eb5b5fe5a4f2e60da406ffc11f39c735b
includes/export/XmlDumpWriter.php
tests/phpunit/maintenance/backup_PageTest.php