Fixed Bug: Halting can corrupt revisions

Seb Clediere reports:

I think I have noticed one problem when stopping the wiki. Indeed the way I stop the wiki (to make some changes to the rhtml files or to change the code,)  I use CTRL C which exit nicely webrick (but perhaps that should not be the way to stop the wiki?) . However, if during that time, the wiki was performing  an automatic update, then it can corrupt the yaml revision file. It happened to me:

Recent Changes to This Site missing revision 290
C:/ruby/lib/ruby/gems/1.8/gems/Soks-0.0.5/lib/soks-storage.rb:76:in `reconstruct_content_from_revisions': undefined method `changes' for nil:NilClass (NoMethodError)
        from C:/ruby/lib/ruby/gems/1.8/gems/Soks-0.0.5/lib/soks-storage.rb:76:in `each'
...

This is a serious problem, and I will give some thought on how to make a graceful shutdown method for soks. Ideas appreciated.

I guess this could also be linked to the Bug: Unanticipated Rollbacks.

Hopefully fixed in v-0-0-6

Edit this page or watch for changes using RSS.