Steps to reproduce:
- Go to any file description page with more than 1 file in the file revision history.
- Hit the revert link on any file of the file history.
- Click on the confirm button to actually perform the revert.
- Hit F5 and accept the browser confirmation dialog (if any).
Results:
The revert is performed again whenever F5 is hit.
Expected results:
No more than a single revert should be done when reloading the page.
This may be done by doing a redirect to a different page once the revert is successful, like what is done after saving an edit or uploading a new file, so hitting F5 doesn't send the form again.
Another solution could be to check if the revert is going to upload the same file as the last version of the file. This would also help when people gets crazy when the cache isn't properly invalidated and start reverting the same file again and again... preventing this flood from happening.
Version: 1.22.0
Severity: enhancement