From: Jeb B. <je...@oc...> - 2001-03-10 00:04:48
|
Hi, I'm running phpwiki 1.2.0 at http://buyorganic.org/live Overall, it's really cool. However, I have seen some unexpected behavior with pages being accidentially deleated when trying to edit. I was watching the Apache log while it happened once, so will show the relevant log entries below, as I explain the process... 207.135.238.21 - - [09/Mar/2001:10:08:53 -0800] "GET /live?MountainPeoplesOrder HTTP/1.0" 200 5937 207.135.238.21 - - [09/Mar/2001:10:09:05 -0800] "GET /live?edit=MountainPeoplesOrder HTTP/1.0" 200 5168 [Originally GET and edit of page.] 63.237.193.173 - - [09/Mar/2001:10:09:30 -0800] "GET /wiki/admin.php?MountainPeoplesOrder HTTP/1.1" 200 6093 [I check that it's still there at this point.] 207.135.238.21 - - [09/Mar/2001:10:13:43 -0800] "POST /live HTTP/1.0" 200 5614 "http://buyorganic.org/live?edit=MountainPeoplesOrder" 63.237.193.173 - - [09/Mar/2001:10:14:03 -0800] "GET /wiki/admin.php?MountainPeoplesOrder HTTP/1.1" 200 2320 User posts edit, and gets 5614 bytes response showing success... I reload, and the page ss gone! (2320 bytes is new page template) 63.237.193.173 - - [09/Mar/2001:10:19:49 -0800] "GET /wiki/admin.php?diff=MountainPeoplesOrder HTTP/1.1" 200 838 I check diff, which shows nothing in the database. (I think it should diff an empty pages against the archived copy. Similarly, I think editing a deleated page with a copy in the archive should present the option to edit the archive copy...) 207.135.238.21 - - [09/Mar/2001:10:20:03 -0800] "POST /live HTTP/1.0" 200 5724 "http://buyorganic.org/live?edit=MountainPeoplesOrder" 63.237.193.173 - - [09/Mar/2001:10:20:57 -0800] "GET /wiki/admin.php?MountainPeoplesOrder HTTP/1.1" 200 5655 I walked her through going Back, copying the text (sent to me as email) and Saving again. This time it worked(!!!) even though I expected it to warn her that she was editing a previous copy, as I've seen when going back before without reloading. So, the page was unexpectedly lost. Then, it was recovered by effectively posting a first edit to an empty page (which happened to luckily be in the browser cache). The following is a possible clue, which I'm also confused about... I did a 'dump serialized pages' to backup, and here is partial output: SandBox ... 304 bytes written MountainPeoplesOrderr ... 5 bytes written MountainPeoplesOrderr ... 5 bytes written MountainPeoplesOrderr ... 5 bytes written MountainPeoplesOrder ... 3785 bytes written HowToUseWiki ... 2403 bytes written What are those three 5 byte pages with an extra 'r'?? They are not pages in the site database. In fact, the first time I did the dump, there was only one of these bogus entries in the output. Since then, the page has been accidentially deleated twice more. So, I'm thinking these records might be added each time the version is set back to 1 (after a page is deleated). Of course, I plan to study the code to figure out exactly why this is happening, but if anyone has ideas, I'd appreciate any clues. Thanks! -jeb |
From: Steve W. <sw...@pa...> - 2001-03-10 19:20:06
|
OK, I've reached the point where I could go through all the same steps: * Jeb was surfing in admin mode when he got no page * buyorganic.org runs PHP 3.0 Unfortunately I wasn't able to reproduce the bug. The only differences I see are he's using 3.0.18 and I'm using 3.0.12; and I had to copy the page source of MountainPeoplesOrder from the [info] link on buyorganic.org, b/c the page is locked. So I might have a variation in the page source. Jeb is also using OpenSSL, but I can't see that making any difference. We could use a listing from phpinfo() to look for other things. At this point the only thing I can think of is to compile 3.0.18 here and try it out. Jeb: what Unix are you running? ~swain On Fri, 9 Mar 2001, Jeb Bateman wrote: > Hi, I'm running phpwiki 1.2.0 at http://buyorganic.org/live > Overall, it's really cool. However, I have seen some unexpected > behavior with pages being accidentially deleated when trying to edit. > I was watching the Apache log while it happened once, so will show the > relevant log entries below, as I explain the process... > > 207.135.238.21 - - [09/Mar/2001:10:08:53 -0800] "GET > /live?MountainPeoplesOrder HTTP/1.0" 200 5937 > 207.135.238.21 - - [09/Mar/2001:10:09:05 -0800] "GET > /live?edit=MountainPeoplesOrder HTTP/1.0" 200 5168 > > [Originally GET and edit of page.] > > 63.237.193.173 - - [09/Mar/2001:10:09:30 -0800] "GET > /wiki/admin.php?MountainPeoplesOrder HTTP/1.1" 200 6093 > > [I check that it's still there at this point.] > > 207.135.238.21 - - [09/Mar/2001:10:13:43 -0800] "POST /live HTTP/1.0" > 200 5614 "http://buyorganic.org/live?edit=MountainPeoplesOrder" > 63.237.193.173 - - [09/Mar/2001:10:14:03 -0800] "GET > /wiki/admin.php?MountainPeoplesOrder HTTP/1.1" 200 2320 > > User posts edit, and gets 5614 bytes response showing success... > I reload, and the page ss gone! (2320 bytes is new page template) > > 63.237.193.173 - - [09/Mar/2001:10:19:49 -0800] "GET > /wiki/admin.php?diff=MountainPeoplesOrder HTTP/1.1" 200 838 > > I check diff, which shows nothing in the database. (I think it should > diff an empty pages against the archived copy. Similarly, I think > editing a deleated page with a copy in the archive should present the > option to edit the archive copy...) > > 207.135.238.21 - - [09/Mar/2001:10:20:03 -0800] "POST /live HTTP/1.0" > 200 5724 "http://buyorganic.org/live?edit=MountainPeoplesOrder" > 63.237.193.173 - - [09/Mar/2001:10:20:57 -0800] "GET > /wiki/admin.php?MountainPeoplesOrder HTTP/1.1" 200 5655 > > I walked her through going Back, copying the text (sent to me as email) > and Saving again. This time it worked(!!!) even though I expected > it to warn her that she was editing a previous copy, as I've seen when > going back before without reloading. > > So, the page was unexpectedly lost. Then, it was recovered by > effectively posting a first edit to an empty page (which happened to > luckily be in the browser cache). > > The following is a possible clue, which I'm also confused about... > I did a 'dump serialized pages' to backup, and here is partial output: > > SandBox ... 304 bytes written > MountainPeoplesOrderr ... 5 bytes written > MountainPeoplesOrderr ... 5 bytes written > MountainPeoplesOrderr ... 5 bytes written > MountainPeoplesOrder ... 3785 bytes written > HowToUseWiki ... 2403 bytes written > > What are those three 5 byte pages with an extra 'r'?? They are not > pages in the site database. In fact, the first time I did the dump, > there was only one of these bogus entries in the output. Since then, > the page has been accidentially deleated twice more. So, I'm thinking > these records might be added each time the version is set back to 1 > (after a page is deleated). > > Of course, I plan to study the code to figure out exactly why this is > happening, but if anyone has ideas, I'd appreciate any clues. > > Thanks! > -jeb > > > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > http://lists.sourceforge.net/lists/listinfo/phpwiki-talk > --- http://www.panix.com/~swain/ "Without music to decorate it, time is just a bunch of boring production deadlines or dates by which bills must be paid." -- Frank Zappa |