Project

General

Profile

Auth 'remember me' causing Dbo error

Added by Sean Lynch over 13 years ago

This is a continuation of what I was trying to figure out at the end of this thread: http://redmine.webtoolkit.eu/boards/2/topics/3450. I put it in a new thread because the topic had moved away from the original title.

I've isolated the problem to the following:

I log into my application and check the 'remember me' box.

If at some point, I refresh the browser page I get the error:

Error occurred.

Dbo load(): no active transaction

If, when Iog in, I don't check the 'remember me' box, when I hit refresh it just brings me back to the login page.

In my wt_config.xml I have it set up for dedicated-processes and have the following set:

<tracking>Auto</tracking>
<reload-is-new-session>false</reload-is-new-session>

So there are two questions:

  1. Why does checking the 'remember me' box cause the Dbo error?

and, probably related

2. Why, if I don't check the 'remember me' box, does it bring me back to the login window when I hit refresh?

I would think it would just give me back the same page. Even though I have reload-is-new-session set to false, I see in the log that it is spawning a new session.


Replies (1)

RE: Auth 'remember me' causing Dbo error - Added by Koen Deforche over 13 years ago

Hey,

Are you sure you have set these within the configuration block ?

A refresh with false should be indicated in the log using:

[2012-Jan-02 09:10:51.624764] 26670 [/ QpXzDO56140OsZ8Y] [info] "Wt: refreshing session"

As to the dbo error --- I cannot reproduce this with for example the auth feature example, but this could be related to the use of dbo objects during rendering without a transaction, you should be able to examine this using a break point (e.g. gdb: catch throw) and see where the dbo object is used and why there is no transaction in scope.

Regards,

koen

    (1-1/1)