MoinMoinBugs/MoinMoinBugs/DoubleClickOfSaveChangesButtonDeletesPage
Description
I installed DesktopEdition at my locale network which consist few computers. I clicked "Save changes" (at the computer different from moinmoin installed one) button once and click it again before page was loaded up. I got an error "Page could not get locked. Missing 'current' file?". And after that I found that this page was deleted (it has deleted status and was deleted). The error would not appear if don`t click the button twice. I would like to know how I can make pages undeletable on double (repeated) clicking of "Save changes" button.
Steps to reproduce
Install and configure DesktopEdition (just changed "interface" to , actually). , port = 8080 Language you are using the wiki in: Japanese
- Connect to moinmoin wiki page from another local network computer.
- Change one of a page (I tryed IE and Firefox)
- Click "Save changes" button once and click it again.
MoinMoin Version: 1.8.4 OS and Version: Windows XP Professional SP 2 Python Version: 2.5.4 Server Setup: interface =
Workaround
After this happens the above error displayed each time I tryed to change any page. So I deleted folder of deleted page at MoinMoinWiki\wiki\data\pages and after that it becomes possible to change pages again. Not a good desicion but it works at least so would use it before find better.
Discussion
check if you have an edit lock file in the page dir you edited.
Thank you for your answer. Yes, there is "edit-lock" file at the folder of the deleted file. When I delete this file and add "current" file to the folder I can reverse deleted page to the previous version at the wiki. So as result I lose only changes I was trying to save last time (when I clicked SaveChanges button twice). I can live with this but this is not too comfortable. If there is any resolve for this issue (DoubleClickOfSaveChangesButtonDeletesPage) would be happy to know.
By the way. Sorry, it is my fault for bad explaning. Before I asked here I searched the net and this wiki for at least half of day. I have found that 1) "current" file at any folder don`t consist "-locked" in its name 2) I have no any folders or files named "username" or "MoinEditorBackup" at all.
MoinEditorBackup was before 1.6. Now if you do a preview and can't save you get access to it from the editor.
- Ok. I understand. Thank you.
By the way 2. This problem happenes when there is a pause before first and second click of SaveChanges button like a second or longer. When I click button twice very quickly there is no any problem with saving.
I assume you can't reproduce the behaviour on this server here, or can you? Which filesystem type do you use on your box? if you alter a file on your system within the same shortly intervall does it get a new timestamp?
- I tried now and just got few "edit conflict" when I clicked few times.
thanks that's a good hint, will look later on that part
- I tried now and just got few "edit conflict" when I clicked few times.
My filesystem is NTFS. If timestamp is what writed at "edit-log" file then I get a one new timestamp (like 1246434431215829 00000003 SAVE....) even if clicked few times. Altering a file means saving changes by SaveChanges button, right?
I meant simulating the behaviour with an editor on your system, e.g. notepad, or a small py program
I have also found that my time and server time is no the same. May it relate?
no, i think you speak about the tz offset currently. you can configure that in your user settings
This bug is still there in the 1.9.3 release. Also, only seems to be occurring in the desktop edition - will test some more and update thread.