-
2007-02-07
PeS
I have found, that lost update problem can occur using drafts. (BTW drafts are cool)
A, B - two users
A: start editing test page, add TESTA, preview (to save draft)
B: try to edit same page, locked
B: after timeout. edit page, add TESTB (TESTA isn't present), save file
A: continue editing, save...and voila TESTB is lost
Solution:
Check the base version for draft and latest version in wiki and display warning, that the page has changed since draft.
Maybe instead of source display display diff page between draft and actual version and maybe allow merge?
Or another way, create diff between draft and base page and try apply patch against actual version (merge)?
-
2007-05-18
gb
A: continue editing, save...and voila TESTB is lost
The problem is A has no longer locked the file to edit it, his edition/save should fail. Rather then comparing draft and page times (how to do it if drafts are disable in the config?) I'd go with forbidding edition or save if there is no lock file.
-
2009-07-25
andi
Hmm... A reacquires a new lock when he continues his editing (the draft saving in the background will reacquire this lock for him). However, when saving he should get the "a newer version exists" screen showing the edit of B in a diff...
-
2010-06-26
andi
Guy, are you saying you get no Edit conflict for user A in the above scenario? If so, please open a new bug report. I'll close this one.
-
2010-06-26
andi
works as intended