Last modified: 2011-03-13 18:05:40 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T23376, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21376 - Edit conflict sometimes created when using "back" button in browser
Edit conflict sometimes created when using "back" button in browser
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-11-01 19:08 UTC by amirvis
Modified: 2011-03-13 18:05 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description amirvis 2009-11-01 19:08:55 UTC
Sometimes it is possible to edit a page, save the edit, return to the editing window by clicking the "back" button in one's browser, editing further, and saving again. However, this often results in an edit conflict, even if no one else has edited the page in the mean time. If an example helps, here is a diff of the first edit in such a pair: http://en.wikipedia.org/w/index.php?title=Specific_impulse&diff=323317564&oldid=322564554.

It would be tremendously convenient to always be able to use the back button, to easily return to the same sentence one was just editing.
Comment 1 Svip 2009-11-01 19:17:40 UTC
Each edit session uses a token to ensure that it is the same edit, and to avoid spam (and yes, to check for edit conflicts).  As such, continued editing should always be using the edit link to produce a new token.

In other words, to allow this feature, you would require a new token to be produce when you use the back link, which ''will'' require a refresh of the page, thus rendering the purpose of this feature close to pointless.
Comment 2 Roan Kattouw 2009-11-01 19:52:28 UTC
If you're editing a full page, edit conflicts with yourself won't happen; they will happen for section edits though.
Comment 3 Alex Z. 2009-12-15 23:30:56 UTC
The issue is because the edit form includes 2 hidden input fields that have the revision timestamp of the revision you're editing and the time you started editing. These will both be wrong when using the back button. When you try to save the page, the server thinks you're editing an older version than you actually are. From a few minutes of looking, I can't find any way to force the browser to reload the page when using the back button that doesn't use some JS hack; but as Svip noted, if you have to reload the page, it somewhat defeats the purpose.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links