https://bugzilla.wikimedia.org/show_bug.cgi?id=51383

       Web browser: ---
            Bug ID: 51383
           Summary: Reloading the page after reverting a file performs the
                    revert again
           Product: MediaWiki
           Version: 1.22-git
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: Unprioritized
         Component: File management
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

Steps to reproduce:

1. Go to any file description page with more than 1 file in the file revision
   history.
2. Hit the revert link on any file of the file history.
3. Click on the confirm button to actually perform the revert.
4. 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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to