Re: [cowiki-dev] Someone had to set dev.cowiki.org up

"Daniel T. Gorski" <[email protected]> Mon, 18 Jul 2005 00:41:25 +0200
Newsgroups gmane.comp.php.cowiki.devel
Message-ID <20050717224125.GB545@bantha>
On 05 Jul 23:03, Paul Hanchett wrote:

> >It always occured if a "guest user" (and only a guest) changed or created
> >a document - then an other "document/page" get magically recovered. This
> >is not very new impression, but I thought about this for a while and came
> >to the conclusion that the "recovery-methods" provided by Kai Schröder[1]
> >should be reviewed, as I am 101% sure that this error wasn't there for
> >almost two years before (of course because the code for recovery wasn't
> >there), but I have the suspicion that the problem lies somewhere in the
> >DocumentDAO class, thats has beend changed and provided by Kai: the
> >recovery stuff.

> Answer: some code is executing that shouldn't.  Nothing else could copy 
> the old record back from history to the current list.  The only place I 
> found that seems to address this functionality is near line 1518 and 
> following in class.DocumentDAO.php:

I tweaked around a bit there and comitted that stuff. Unfortunately I wasn't
able to test is as it is not reproducible. Maybe it helps.

regards dtg