Re: [studs-user] isCancelled() in GolfLog demo webapp
Status: Beta
Brought to you by:
mojavelinux
|
From: Dan A. <dan...@gm...> - 2005-07-25 20:12:27
|
On 7/25/05, Johan Mj=F6nes <joh...@on...> wrote: > While trying out Studs using the example web application (GolfLog) I > noticed that I was unable to add players using the interface (with no > warning or error presented). >=20 > While trying to locate the issue, I noticed that in > EditPlayerSubmitAction.php, in the execute() method, > $this->isCancelled() seems to return true, even though the form was not > cancelled. >=20 > I'm new to both Struts and Studs, so I might be missing something, but > is this an error in Studs (or GolfLog) or am I simply missing something? >=20 > Best Regards, >=20 > Johan Mjones Johan, I did some research into the issue and I actually found a couple of bugs. When I went to the non-index.php version of the paths (using mod_rewrite), it screwed up the handling of the session cookie path.=20 I was able to put in a nice resolution for that. I also realized that checks for a valid token were not working since the session had not been started, so I also fixed that problem. Finally, it appears that the web server on sourceforge where golflog is hosted has some serious file read problems, so the session data gets dropped randomly (I don't experience this on any of my other test servers). So I went ahead and disabled the check for a valid form token in the demo, but it should work in the next version of the golflog package (0.9.8). All of this will be fixed in 0.9.8 and available in CVS shortly. /dan p.s. There also seems to be a mysql problem on the sourceforge server that does not involve the golflog application. Perhaps it is time to host the demo on mojavelinux.com ;) --=20 Open Source Advocacy http://www.mojavelinux.com |