You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Søren Krum <so...@uninett.no> on 2009/07/17 09:48:55 UTC

Strange login behaviour

Hi!

I rewrote a old a bit monolitic web application from cocoon 2.1 to 2.2, 
and so far, it worked well :-)

Now i have a bit of a problem: I have a central block containing a 
transformer service, which i use to render all my pages, so they all get 
the same fine CI. As part of this frame, there should be a String saying 
"welcome <displayname>". The display name is set as a attribute in the 
User object while the user is logged in. So i use the fine act 
type="cauth-is-logged-in" to fetch the parameters from the user, but, 
hm, it looks like these parameters are missing in some circumstances, 
and experimented a bit, but i have no further ideas, otherwise i would 
not bother you...

I have defined only one security handler (in the context.xml of the 
central block), but it looks like that security handler is visible in 
the other blocks as well, at least they act as like they know if a user 
is logged in properly. But if i now from another block try to render my 
side over the central service, then the cauth-is-logged-in (called in 
the central block) stops working properly in some circumstances.

I describe some scenarios, each starting with a not inlogged user.

Szenario 1:
I log in in the central block, and here seems to work smoothly, i am 
redirected to my start page, residing in another block.
the cauth-is-logged-in in rendering service called from this other block 
does not work as expected, but all other blocks recognize the user as a 
logged in user?!?

Szenario 2:
I call a site from block "a", which is just acessable for users logged in
A service from the central block presents a login-screen (no redirect, a 
generator service is used) because i am not logged in
after the login i get the page i asked for
the cauth-is-logged-in works for block "a" properly but not for the 
other blocks...


-- 
Med vennlig hilsen

Søren D. Krum
Systemutvikler/system developer
UNINETT FAS
+ 47 73557859

There are 10 different kind of people in the world, those who understand binary and those who don't


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org