r105140 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r105139
|
r105140
|
r105141
>
Date:
23:34, 4 December 2011
Author:
aaron
Status:
reverted (
Comments
)
Tags:
Comment:
Added file old version name sanity check to recordUpload2()
Modified paths:
/trunk/phase3/includes/filerepo/file/LocalFile.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/filerepo/file/LocalFile.php
—
—
@@ -1007,6 +1007,9 @@
1008
1008
);
1009
1009
1010
1010
if ( $dbw->affectedRows() == 0 ) {
1011
+ if ( $oldver == '' ) {
1012
+ throw new MWException( "Empty oi_archive_name. Database and storage out of sync?" );
1013
+ }
1011
1014
$reupload = true;
1012
1015
1013
1016
# Collision, this is an update of a file
Follow-up revisions
Revision
Commit summary
Author
Date
r105153
Revert
r105140
temporarily. The exception is thrown while running the parser ...
catrope
07:03, 5 December 2011
Comments
#
Comment by
Aaron Schulz
(
talk
|
contribs
)
23:40, 4 December 2011
This exposes a NewParserTests bug I ran into in branch.
Status & tagging log
07:03, 5 December 2011
Catrope
(
talk
|
contribs
)
changed the
status
of r105140
[
removed:
new
added:
reverted]