From gareuselesinge at libero.it Thu Jul 17 11:47:33 2008 From: gareuselesinge at libero.it (Enrico Tassi) Date: Fri Jul 18 05:43:50 2008 Subject: [Sputnik-list] Bug in sputnik + xavante/wsapi Message-ID: 20080717134733.GA15636@birba
Hi, I'm experiencing a nasty bug using sputnik on top of xavante. The bug is really nasty since many factors contribute to it. I belive it has something to do with the loadisolatedlauncher in wsapi.common.
It seems to try to reuse states to speedup the application loading and if (appstate.mtime == mtime) no reload operation is performed. Changing this test to fale (always call bootstraapp) solves the issue, but I'm pretty sure It can not be that wrong thus I must be missing something...
The bug is easy to reproduce on my setup, just edit a page (like the configuration file) and change the main colour of sputnik... The modification does not apply, repeatedly reloading the page gives sometimes the expected result (the new color shows up) but not always, while restarting xavante or touching sputnik.ws makes the modification "stable". The bug is even nastries sometimes, since realoding may lead the user to loose autentication (like if it was reusing a previous state in which the user had not log in yet...).
I've not tried sputnik on top of Apache, but I'll do soon to understand if the problem is wsapi of wsapi+xavante/rings. Not sure it is important, but I'm not using luarocks.require (but I'm using the very same software that luarocks installed, I've just copied it in the right path so that no luarocks.require is needed).
Any ideas? -- Enrico Tassi
From jnwhiteh at gmail.com Fri Jul 18 07:52:58 2008 From: jnwhiteh at gmail.com (Jim Whitehead II) Date: Fri Jul 18 08:03:07 2008 Subject: [Sputnik-list] Bug in sputnik + xavante/wsapi In-Reply-To: 20080717134733.GA15636@birba References: 20080717134733.GA15636@birba Message-ID: 5fe281d40807180252l25a636c8o7441813f2d6d29c2@mail.gmail.com
On Thu, Jul 17, 2008 at 2:47 PM, Enrico Tassi gareuselesinge@libero.it wrote:
Hi, I'm experiencing a nasty bug using sputnik on top of xavante. The bug is really nasty since many factors contribute to it. I belive it has something to do with the loadisolatedlauncher in wsapi.common.
It seems to try to reuse states to speedup the application loading and if (appstate.mtime == mtime) no reload operation is performed. Changing this test to fale (always call bootstraapp) solves the issue, but I'm pretty sure It can not be that wrong thus I must be missing something...
The bug is easy to reproduce on my setup, just edit a page (like the configuration file) and change the main colour of sputnik... The modification does not apply, repeatedly reloading the page gives sometimes the expected result (the new color shows up) but not always, while restarting xavante or touching sputnik.ws makes the modification "stable". The bug is even nastries sometimes, since realoding may lead the user to loose autentication (like if it was reusing a previous state in which the user had not log in yet...).
I've not tried sputnik on top of Apache, but I'll do soon to understand if the problem is wsapi of wsapi+xavante/rings. Not sure it is important, but I'm not using luarocks.require (but I'm using the very same software that luarocks installed, I've just copied it in the right path so that no luarocks.require is needed).
There is a flag that can be set in the xavante handler that allows you to bypass this caching. In xavante/config.lua you can change the following line:
{ -- wsapihandler example
match = {"%.ws$", "%.ws/" },
with = wsapi.xavante.makeGenericHandler (webDir)
},
to
{ -- wsapihandler example
match = {"%.ws$", "%.ws/" },
with = wsapi.xavante.makeGenericHandler (webDir, true)
},
This was added by Fabio specifically for this reason [1].
Cheers!
From gareuselesinge at libero.it Fri Jul 18 10:25:01 2008 From: gareuselesinge at libero.it (Enrico Tassi) Date: Fri Jul 18 10:35:21 2008 Subject: [Sputnik-list] Bug in sputnik + xavante/wsapi In-Reply-To: 5fe281d40807180252l25a636c8o7441813f2d6d29c2@mail.gmail.com References: 20080717134733.GA15636@birba
<5fe281d40807180252l25a636c8o7441813f2d6d29c2@mail.gmail.com>
Message-ID: 20080718122501.GA3564@birba
On Fri, Jul 18, 2008 at 10:52:58AM +0100, Jim Whitehead II wrote:
On Thu, Jul 17, 2008 at 2:47 PM, Enrico Tassi gareuselesinge@libero.it wrote:
with = wsapi.xavante.makeGenericHandler (webDir, true)
Thank you very much!
may I add this to http://sputnik.freewisdom.org/en/Troubleshooting ?
Cheers -- Enrico Tassi