Project

General

Profile

Actions

Defect #7939

closed

Simultaneous Wiki Updates Cause Internal Error

Added by Tom Skerry over 13 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
Wiki
Target version:
Start date:
2011-03-21
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Redmine version details:
Redmine version 1.1.1
Ruby version 1.8.7 (i386-mingw32)
RubyGems version 1.5.2
Rack version 1.0
Rails version 2.3.5
Active Record version 2.3.5
Active Resource version 2.3.5
Action Mailer version 2.3.5
Active Support version 2.3.5
Application root D:/Program Files (x86)/Redmine_Webserver/Redmine
Environment development
Database adapter mysql
Database schema version 0

Current Problem:
If two managers (or users with the "Edit wiki pages" permission) edit a wiki in the following way this results in a catastrophic error:
Manager 1 - Opens wiki in edit mode
Manager 2 - Opens wiki in edit mode
Manager 2 - Makes changes to wiki
Manager 2 - Saves wiki
Manager 1 - Makes changes to wiki
Manager 1 - Saves wiki

Manager 1 now gets a "500 internal error" page and loses all updates made to the wiki page. This can be rather frustrating if a large amount of changes have been made. The lock system (achieved with the "Protect wiki pages" permission) seems to be a step in the right direction, however this does not prevent another user with the same permission from editing the wiki and quite often we find they neglect to notice the "locked" icon in the top right-hand corner of the wiki before clicking "edit".

Possible Fixes:
1) Display a message box to all users that try to edit a wiki that is currently being edited.
OR
2) Make the "Lock" system work so that a user would have to "break the lock" in order to edit the wiki. (Thus alerting a user that they might not want to edit the wiki at this present moment, but at the same time allowing a lock to be broken if a user has forgotten to remove it after their edit has been saved).
OR
3) If the sequence of events above occurs display a more explanatory error page and retain the users edited text so that when they click "back" on their browser their changes are not lost. It is then up to the user to backup their changes and merge them into the recently updated wiki.


Related issues

Has duplicate Redmine - Defect #8207: Wiki concurrent editing - loosing my editClosed2011-04-21

Actions
Actions

Also available in: Atom PDF