Description

Whenever a user edits a page and clicks "Save Changes" without actually changing the page, the edit is cancelled. ("You did not change the page content, not saved!") However, if another user wants to edit this page afterwards, he's prohibited to it, cause the first user's lock is still in place.

Steps to reproduce

  1. User A has to edit a page, press "Save Changes" w/o changing anything
  2. User B should now try to edit the page

Example

Component selection

Details

MoinMoin Version

1.7.x, 1.8.x

OS and Version

Python Version

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

Discussion

        elif newtext == self.get_raw_body():
            msg = _('You did not change the page content, not saved!')
            raise self.Unchanged, msg

to

        elif newtext == self.get_raw_body():
            msg = _('You did not change the page content, not saved!')
            self.lock.release()
            raise self.Unchanged, msg

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/EditLockNotReleasedWhenNoChangesWhereMade (last edited 2009-04-18 19:09:26 by ThomasWaldmann)