When overwriting moved images, multiple duplicate entries appear in the file history. There is also a problem with the file history thumbnails being updated.
Steps to reproduce:
- Upload an image.
- Move the image to somewhere else.
- Upload another image on top of the moved image.
Expected results versus actual:
*There should be only two entries in the file history. One test case had 3 duplicate entries, the other 2.
*The thumbnail for the most recent version should match the actual version of the image. Instead it is stuck on the old version, but beside the reason for the new upload.
*In the second test case, the image displayed does not match the thumbnail produced with [[Image:TestImage2.png|300px]]. Purging the server cache doesn't do anything.