Original bug title:
Call to undefined method ArchivedFile::getArchiveName() when attempting to restore file revision
Query:
POST https://commons.wikimedia.org/w/api.php
action revisiondelete
format jsonfm
ids 2373038
reason test
show content|comment|user
target File:' onmouseover='alert("There is a security vulnerable. Please contact the next admin if you see this in a message box.")' target='.png
token <redacted>
type filearchive
Result:
500 Internal Server Error
Wikimedia Foundation
Error
PHP fatal error in /usr/local/apache/common-local/php-1.24wmf12/includes/revisiondelete/RevisionDelete.php line 748:
Call to undefined method ArchivedFile::getArchiveName()
Version: unspecified
Severity: major