You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by JD Daniels <jd...@datatrio.com> on 2004/01/30 20:55:06 UTC
Flow Redirect The auth-fw with cocoon:/ Not working
There was a thread on this earlier, but there was not a solution I can see.
I had my auth pipelines defined in the root sitemap, and they worked great.
I need to move them to a sub-sitemap, but when I do, a blank html page is
serialized out to the client, although all the logs indicate the redirects
have taken place. the only change I can see is the addition of the cocoon://
protocol to my handler.
function login(form) {
var model = form.getModel();
form.showForm("login-display-pipeline");
cocoon.sendPage("doLogin.xml");
}
If I have this in my root sitemap. it works fine.
But if I move it to a subsitemap and configure the authentication handler:
<handler name="userhandler">
<redirect-to uri="cocoon://auth/login.form"/>
<authentication uri="cocoon://auth/authUser.xsp"/>
</handler>
anyone have any ideas?
JD
RE: Flow Redirect The auth-fw with cocoon:/ Not working
Posted by Antonio Gallardo <ag...@agssa.net>.
JD Daniels dijo:
> You aren't late.. it still doesn't work :)
>
>
> changing <authentication uri="cocoon://auth/authUser.xsp"/>
>
> to
>
> <authentication uri="cocoon:raw:///auth/authUser.xsp"/>
> throws:
> java.lang.RuntimeException: The current URI (/auth/authUser.xsp) doesn't
> start with given prefix (auth)
> (which confuses me).
Yep. This is a weird error. Are you using flow? I review again the thread
and you post:
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=107550433510446&w=2
I think it could be a problem in redirection. I suggest to move the
problem to the dev list, since some developers does not follow the user
list.
BTW, sorry for the noise, my solution works when you have the
authetication in the root sitemap.
Best Regards,
Antonio Gallardo.
>
>
> but
>
>
> <authentication uri="cocoon://auth/authUser.xsp"/>
>
> Throws no errors.. and authenticates me. I just see no page serialized
> out.
>
> The auth-fw seems to be working fine. I just don't get sent to right page
> when:
>
> 1.) A successful login occurs
> 2.) An already authenticated user tries to login again
>
>
> JD
>
> -----Original Message-----
> From: Antonio Gallardo [mailto:agallardo@agssa.net]
> Sent: 2004-01-30 2:32 PM
> To: users@cocoon.apache.org
> Subject: RE: Flow Redirect The auth-fw with cocoon:/ Not working
>
>
> Hi:
>
> Sorry to be late, I know I am too late, but maybe this helps. In my
> authentication with flow I am using:
>
> <map:pipelines>
> <map:component-configurations>
> <authentication-manager>
> <handlers>
> <handler name="authhandler">
> <redirect-to uri="cocoon://entrada"/> <!-- Se llama si
> el usuario no ha sido autenticado -->
> <authentication uri="cocoon:raw:///autentificar"/>
> <!-- Verifica datos del usuario -->
> </handler>
> </handlers>
> </authentication-manager>
> </map:component-configurations>
>
> And this works fine.
>
> Best Regards,
>
> Antonio Gallardo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: Flow Redirect The auth-fw with cocoon:/ Not working
Posted by Antonio Gallardo <ag...@agssa.net>.
Hi:
Sorry to be late, I know I am too late, but maybe this helps. In my
authentication with flow I am using:
<map:pipelines>
<map:component-configurations>
<authentication-manager>
<handlers>
<handler name="authhandler">
<redirect-to uri="cocoon://entrada"/> <!-- Se llama si
el usuario no ha sido autenticado -->
<authentication uri="cocoon:raw:///autentificar"/>
<!-- Verifica datos del usuario -->
</handler>
</handlers>
</authentication-manager>
</map:component-configurations>
And this works fine.
Best Regards,
Antonio Gallardo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: Flow Redirect The auth-fw with cocoon:/ Not working
Posted by JD Daniels <jd...@datatrio.com>.
Yup...
The xsl/xsp/xml files were moved to the subsitemaps folder as well. no
troubles there.
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 2:05 PM
To: users@cocoon.apache.org
Subject: RE: Flow Redirect The auth-fw with cocoon:/ Not working
Of course you changed the path in your test?
Like using ../ instead of / ?
JD Daniels <jd...@datatrio.com> wrote:
Correct. I have the pipelines moved out of an internal pipeline, and call
them from the browser and they work as expected. As well, when the blank
page loads.. I can manually type in a protected url, and I am logged in
correctly.
JD
( CC'd users to move it over there. )
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 1:56 PM
To: dev@cocoon.apache.org
Subject: RE: Flow Redirect The auth-fw with cocoon:/ Not working
Just let me rephrase please (by the way, it might a users@ ... chat instead
of dev):
When you put your login pipeline in a subsitemap: you get a blank page.
If you put them at the root sitemap you don't have nay problems: everything
work as expected.
Is it that?
JD Daniels wrote:
Yes... I get file not found.. it looks in the incorrect directory.
You can see in the sitemap.log below.. everything *seems* to be working
correctly:
INFO [sitemap] (/root/users/view.xsp) Thread-15/ForwardRedirector:
Redirecting to '/root/auth/login.form?resource=%2Froot%2Fusers%2Fview.xsp'
INFO [sitemap] (/root/auth/login.form) Thread-15/ForwardRedirector:
Redirecting to 'cocoon:/login-display-pipeline'
INFO [sitemap]
(/root/auth/5e633f0d466b538e64777087384c836f74437714.continue)
Thread-15/ForwardRedirector: Redirecting to 'cocoon:/doLogin.xml'
INFO [sitemap]
(/root/auth/5e633f0d466b538e64777087384c836f74437714.continue)
Thread-15/RedirectToURINode: Redirecting to '/root' at
file:/D:/Projects/moduletest/ROOT/modules/auth/sitemap.xmap:77:67
JD
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 1:32 PM
To: dev@cocoon.apache.org
Subject: RE: Flow Redirect The auth-fw with cocoon:/ Not working
Sorry to ask but have you tried cocoon:/ instead of cocoon:// ?
JD Daniels wrote:
ROOT/sitemap.xmap:
uri-prefix="auth"/>
ROOT/modules/auth/sitemap.xmap
value="forms/login.xml"/>
src="context://resources/xsl/system/woody-styling.xsl"/>
value="{request:username}"/>
value="{request:password}"/>
value="{request:username}"/>
value="{request:password}"/>
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 12:23 PM
To: dev@cocoon.apache.org
Subject: RE: Flow Redirect The auth-fw with cocoon:/ Not working
Could you send us your sitemap (well not all, but you understood)
JD Daniels wrote:
the problem seems to be when the pipelines are defined in a sub sitemap.
I have the login, logout pipleines defined in sitemap under auth/
when they are defined in the root sitemap, they work fine. the logs indicate
that all of the actions and redirects are taking place, it is just
serializing out a blank html page.
JD
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 12:07 PM
To: dev@cocoon.apache.org
Subject: Re: Flow Redirect The auth-fw with cocoon:/ Not working
I used the action with tons of redirection and it worked fine.
JD Daniels wrote:
There was a thread on this earlier, but there was not a solution I can see.
I had my auth pipelines defined in the root sitemap, and they worked great.
I need to move them to a sub-sitemap, but when I do, a blank html page is
serialized out to the client, although all the logs indicate the redirects
have taken place. the only change I can see is the addition of the cocoon://
protocol to my handler.
function login(form) {
var model = form.getModel();
form.showForm("login-display-pipeline");
cocoon.sendPage("doLogin.xml");
}
If I have this in my root sitemap. it works fine.
But if I move it to a subsitemap and configure the authentication handler:
anyone have any ideas?
JD
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: Flow Redirect The auth-fw with cocoon:/ Not working
Posted by Nicolas Toper <nt...@yahoo.fr>.
Of course you changed the path in your test?
Like using ../ instead of / ?
JD Daniels <jd...@datatrio.com> wrote:
Correct. I have the pipelines moved out of an internal pipeline, and call
them from the browser and they work as expected. As well, when the blank
page loads.. I can manually type in a protected url, and I am logged in
correctly.
JD
( CC'd users to move it over there. )
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 1:56 PM
To: dev@cocoon.apache.org
Subject: RE: Flow Redirect The auth-fw with cocoon:/ Not working
Just let me rephrase please (by the way, it might a users@ ... chat instead
of dev):
When you put your login pipeline in a subsitemap: you get a blank page.
If you put them at the root sitemap you don't have nay problems: everything
work as expected.
Is it that?
JD Daniels wrote:
Yes... I get file not found.. it looks in the incorrect directory.
You can see in the sitemap.log below.. everything *seems* to be working
correctly:
INFO [sitemap] (/root/users/view.xsp) Thread-15/ForwardRedirector:
Redirecting to '/root/auth/login.form?resource=%2Froot%2Fusers%2Fview.xsp'
INFO [sitemap] (/root/auth/login.form) Thread-15/ForwardRedirector:
Redirecting to 'cocoon:/login-display-pipeline'
INFO [sitemap]
(/root/auth/5e633f0d466b538e64777087384c836f74437714.continue)
Thread-15/ForwardRedirector: Redirecting to 'cocoon:/doLogin.xml'
INFO [sitemap]
(/root/auth/5e633f0d466b538e64777087384c836f74437714.continue)
Thread-15/RedirectToURINode: Redirecting to '/root' at
file:/D:/Projects/moduletest/ROOT/modules/auth/sitemap.xmap:77:67
JD
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 1:32 PM
To: dev@cocoon.apache.org
Subject: RE: Flow Redirect The auth-fw with cocoon:/ Not working
Sorry to ask but have you tried cocoon:/ instead of cocoon:// ?
JD Daniels wrote:
ROOT/sitemap.xmap:
uri-prefix="auth"/>
ROOT/modules/auth/sitemap.xmap
value="forms/login.xml"/>
src="context://resources/xsl/system/woody-styling.xsl"/>
value="{request:username}"/>
value="{request:password}"/>
value="{request:username}"/>
value="{request:password}"/>
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 12:23 PM
To: dev@cocoon.apache.org
Subject: RE: Flow Redirect The auth-fw with cocoon:/ Not working
Could you send us your sitemap (well not all, but you understood)
JD Daniels wrote:
the problem seems to be when the pipelines are defined in a sub sitemap.
I have the login, logout pipleines defined in sitemap under auth/
when they are defined in the root sitemap, they work fine. the logs indicate
that all of the actions and redirects are taking place, it is just
serializing out a blank html page.
JD
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 12:07 PM
To: dev@cocoon.apache.org
Subject: Re: Flow Redirect The auth-fw with cocoon:/ Not working
I used the action with tons of redirection and it worked fine.
JD Daniels wrote:
There was a thread on this earlier, but there was not a solution I can see.
I had my auth pipelines defined in the root sitemap, and they worked great.
I need to move them to a sub-sitemap, but when I do, a blank html page is
serialized out to the client, although all the logs indicate the redirects
have taken place. the only change I can see is the addition of the cocoon://
protocol to my handler.
function login(form) {
var model = form.getModel();
form.showForm("login-display-pipeline");
cocoon.sendPage("doLogin.xml");
}
If I have this in my root sitemap. it works fine.
But if I move it to a subsitemap and configure the authentication handler:
anyone have any ideas?
JD
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
RE: Flow Redirect The auth-fw with cocoon:/ Not working
Posted by JD Daniels <jd...@datatrio.com>.
Correct. I have the pipelines moved out of an internal pipeline, and call
them from the browser and they work as expected. As well, when the blank
page loads.. I can manually type in a protected url, and I am logged in
correctly.
JD
( CC'd users to move it over there. )
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 1:56 PM
To: dev@cocoon.apache.org
Subject: RE: Flow Redirect The auth-fw with cocoon:/ Not working
Just let me rephrase please (by the way, it might a users@ ... chat instead
of dev):
When you put your login pipeline in a subsitemap: you get a blank page.
If you put them at the root sitemap you don't have nay problems: everything
work as expected.
Is it that?
JD Daniels <jd...@datatrio.com> wrote:
Yes... I get file not found.. it looks in the incorrect directory.
You can see in the sitemap.log below.. everything *seems* to be working
correctly:
INFO [sitemap] (/root/users/view.xsp) Thread-15/ForwardRedirector:
Redirecting to '/root/auth/login.form?resource=%2Froot%2Fusers%2Fview.xsp'
INFO [sitemap] (/root/auth/login.form) Thread-15/ForwardRedirector:
Redirecting to 'cocoon:/login-display-pipeline'
INFO [sitemap]
(/root/auth/5e633f0d466b538e64777087384c836f74437714.continue)
Thread-15/ForwardRedirector: Redirecting to 'cocoon:/doLogin.xml'
INFO [sitemap]
(/root/auth/5e633f0d466b538e64777087384c836f74437714.continue)
Thread-15/RedirectToURINode: Redirecting to '/root' at
file:/D:/Projects/moduletest/ROOT/modules/auth/sitemap.xmap:77:67
JD
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 1:32 PM
To: dev@cocoon.apache.org
Subject: RE: Flow Redirect The auth-fw with cocoon:/ Not working
Sorry to ask but have you tried cocoon:/ instead of cocoon:// ?
JD Daniels wrote:
ROOT/sitemap.xmap:
uri-prefix="auth"/>
ROOT/modules/auth/sitemap.xmap
value="forms/login.xml"/>
src="context://resources/xsl/system/woody-styling.xsl"/>
value="{request:username}"/>
value="{request:password}"/>
value="{request:username}"/>
value="{request:password}"/>
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 12:23 PM
To: dev@cocoon.apache.org
Subject: RE: Flow Redirect The auth-fw with cocoon:/ Not working
Could you send us your sitemap (well not all, but you understood)
JD Daniels wrote:
the problem seems to be when the pipelines are defined in a sub sitemap.
I have the login, logout pipleines defined in sitemap under auth/
when they are defined in the root sitemap, they work fine. the logs indicate
that all of the actions and redirects are taking place, it is just
serializing out a blank html page.
JD
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 12:07 PM
To: dev@cocoon.apache.org
Subject: Re: Flow Redirect The auth-fw with cocoon:/ Not working
I used the action with tons of redirection and it worked fine.
JD Daniels wrote:
There was a thread on this earlier, but there was not a solution I can see.
I had my auth pipelines defined in the root sitemap, and they worked great.
I need to move them to a sub-sitemap, but when I do, a blank html page is
serialized out to the client, although all the logs indicate the redirects
have taken place. the only change I can see is the addition of the cocoon://
protocol to my handler.
function login(form) {
var model = form.getModel();
form.showForm("login-display-pipeline");
cocoon.sendPage("doLogin.xml");
}
If I have this in my root sitemap. it works fine.
But if I move it to a subsitemap and configure the authentication handler:
anyone have any ideas?
JD
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
RE: Flow Redirect The auth-fw with cocoon:/ Not working
Posted by JD Daniels <jd...@datatrio.com>.
Correct. I have the pipelines moved out of an internal pipeline, and call
them from the browser and they work as expected. As well, when the blank
page loads.. I can manually type in a protected url, and I am logged in
correctly.
JD
( CC'd users to move it over there. )
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 1:56 PM
To: dev@cocoon.apache.org
Subject: RE: Flow Redirect The auth-fw with cocoon:/ Not working
Just let me rephrase please (by the way, it might a users@ ... chat instead
of dev):
When you put your login pipeline in a subsitemap: you get a blank page.
If you put them at the root sitemap you don't have nay problems: everything
work as expected.
Is it that?
JD Daniels <jd...@datatrio.com> wrote:
Yes... I get file not found.. it looks in the incorrect directory.
You can see in the sitemap.log below.. everything *seems* to be working
correctly:
INFO [sitemap] (/root/users/view.xsp) Thread-15/ForwardRedirector:
Redirecting to '/root/auth/login.form?resource=%2Froot%2Fusers%2Fview.xsp'
INFO [sitemap] (/root/auth/login.form) Thread-15/ForwardRedirector:
Redirecting to 'cocoon:/login-display-pipeline'
INFO [sitemap]
(/root/auth/5e633f0d466b538e64777087384c836f74437714.continue)
Thread-15/ForwardRedirector: Redirecting to 'cocoon:/doLogin.xml'
INFO [sitemap]
(/root/auth/5e633f0d466b538e64777087384c836f74437714.continue)
Thread-15/RedirectToURINode: Redirecting to '/root' at
file:/D:/Projects/moduletest/ROOT/modules/auth/sitemap.xmap:77:67
JD
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 1:32 PM
To: dev@cocoon.apache.org
Subject: RE: Flow Redirect The auth-fw with cocoon:/ Not working
Sorry to ask but have you tried cocoon:/ instead of cocoon:// ?
JD Daniels wrote:
ROOT/sitemap.xmap:
uri-prefix="auth"/>
ROOT/modules/auth/sitemap.xmap
value="forms/login.xml"/>
src="context://resources/xsl/system/woody-styling.xsl"/>
value="{request:username}"/>
value="{request:password}"/>
value="{request:username}"/>
value="{request:password}"/>
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 12:23 PM
To: dev@cocoon.apache.org
Subject: RE: Flow Redirect The auth-fw with cocoon:/ Not working
Could you send us your sitemap (well not all, but you understood)
JD Daniels wrote:
the problem seems to be when the pipelines are defined in a sub sitemap.
I have the login, logout pipleines defined in sitemap under auth/
when they are defined in the root sitemap, they work fine. the logs indicate
that all of the actions and redirects are taking place, it is just
serializing out a blank html page.
JD
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 12:07 PM
To: dev@cocoon.apache.org
Subject: Re: Flow Redirect The auth-fw with cocoon:/ Not working
I used the action with tons of redirection and it worked fine.
JD Daniels wrote:
There was a thread on this earlier, but there was not a solution I can see.
I had my auth pipelines defined in the root sitemap, and they worked great.
I need to move them to a sub-sitemap, but when I do, a blank html page is
serialized out to the client, although all the logs indicate the redirects
have taken place. the only change I can see is the addition of the cocoon://
protocol to my handler.
function login(form) {
var model = form.getModel();
form.showForm("login-display-pipeline");
cocoon.sendPage("doLogin.xml");
}
If I have this in my root sitemap. it works fine.
But if I move it to a subsitemap and configure the authentication handler:
anyone have any ideas?
JD
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: Flow Redirect The auth-fw with cocoon:/ Not working
Posted by Nicolas Toper <nt...@yahoo.fr>.
Just let me rephrase please (by the way, it might a users@ ... chat instead of dev):
When you put your login pipeline in a subsitemap: you get a blank page.
If you put them at the root sitemap you don't have nay problems: everything work as expected.
Is it that?
JD Daniels <jd...@datatrio.com> wrote:
Yes... I get file not found.. it looks in the incorrect directory.
You can see in the sitemap.log below.. everything *seems* to be working
correctly:
INFO [sitemap] (/root/users/view.xsp) Thread-15/ForwardRedirector:
Redirecting to '/root/auth/login.form?resource=%2Froot%2Fusers%2Fview.xsp'
INFO [sitemap] (/root/auth/login.form) Thread-15/ForwardRedirector:
Redirecting to 'cocoon:/login-display-pipeline'
INFO [sitemap]
(/root/auth/5e633f0d466b538e64777087384c836f74437714.continue)
Thread-15/ForwardRedirector: Redirecting to 'cocoon:/doLogin.xml'
INFO [sitemap]
(/root/auth/5e633f0d466b538e64777087384c836f74437714.continue)
Thread-15/RedirectToURINode: Redirecting to '/root' at
file:/D:/Projects/moduletest/ROOT/modules/auth/sitemap.xmap:77:67
JD
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 1:32 PM
To: dev@cocoon.apache.org
Subject: RE: Flow Redirect The auth-fw with cocoon:/ Not working
Sorry to ask but have you tried cocoon:/ instead of cocoon:// ?
JD Daniels wrote:
ROOT/sitemap.xmap:
uri-prefix="auth"/>
ROOT/modules/auth/sitemap.xmap
value="forms/login.xml"/>
src="context://resources/xsl/system/woody-styling.xsl"/>
value="{request:username}"/>
value="{request:password}"/>
value="{request:username}"/>
value="{request:password}"/>
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 12:23 PM
To: dev@cocoon.apache.org
Subject: RE: Flow Redirect The auth-fw with cocoon:/ Not working
Could you send us your sitemap (well not all, but you understood)
JD Daniels wrote:
the problem seems to be when the pipelines are defined in a sub sitemap.
I have the login, logout pipleines defined in sitemap under auth/
when they are defined in the root sitemap, they work fine. the logs indicate
that all of the actions and redirects are taking place, it is just
serializing out a blank html page.
JD
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 12:07 PM
To: dev@cocoon.apache.org
Subject: Re: Flow Redirect The auth-fw with cocoon:/ Not working
I used the action with tons of redirection and it worked fine.
JD Daniels wrote:
There was a thread on this earlier, but there was not a solution I can see.
I had my auth pipelines defined in the root sitemap, and they worked great.
I need to move them to a sub-sitemap, but when I do, a blank html page is
serialized out to the client, although all the logs indicate the redirects
have taken place. the only change I can see is the addition of the cocoon://
protocol to my handler.
function login(form) {
var model = form.getModel();
form.showForm("login-display-pipeline");
cocoon.sendPage("doLogin.xml");
}
If I have this in my root sitemap. it works fine.
But if I move it to a subsitemap and configure the authentication handler:
anyone have any ideas?
JD
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
---------------------------------
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
RE: Flow Redirect The auth-fw with cocoon:/ Not working
Posted by JD Daniels <jd...@datatrio.com>.
Yes... I get file not found.. it looks in the incorrect directory.
You can see in the sitemap.log below.. everything *seems* to be working
correctly:
INFO [sitemap] (/root/users/view.xsp) Thread-15/ForwardRedirector:
Redirecting to '/root/auth/login.form?resource=%2Froot%2Fusers%2Fview.xsp'
INFO [sitemap] (/root/auth/login.form) Thread-15/ForwardRedirector:
Redirecting to 'cocoon:/login-display-pipeline'
INFO [sitemap]
(/root/auth/5e633f0d466b538e64777087384c836f74437714.continue)
Thread-15/ForwardRedirector: Redirecting to 'cocoon:/doLogin.xml'
INFO [sitemap]
(/root/auth/5e633f0d466b538e64777087384c836f74437714.continue)
Thread-15/RedirectToURINode: Redirecting to '/root' at
file:/D:/Projects/moduletest/ROOT/modules/auth/sitemap.xmap:77:67
JD
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 1:32 PM
To: dev@cocoon.apache.org
Subject: RE: Flow Redirect The auth-fw with cocoon:/ Not working
Sorry to ask but have you tried cocoon:/ instead of cocoon:// ?
JD Daniels <jd...@datatrio.com> wrote:
ROOT/sitemap.xmap:
uri-prefix="auth"/>
ROOT/modules/auth/sitemap.xmap
value="forms/login.xml"/>
src="context://resources/xsl/system/woody-styling.xsl"/>
value="{request:username}"/>
value="{request:password}"/>
value="{request:username}"/>
value="{request:password}"/>
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 12:23 PM
To: dev@cocoon.apache.org
Subject: RE: Flow Redirect The auth-fw with cocoon:/ Not working
Could you send us your sitemap (well not all, but you understood)
JD Daniels wrote:
the problem seems to be when the pipelines are defined in a sub sitemap.
I have the login, logout pipleines defined in sitemap under auth/
when they are defined in the root sitemap, they work fine. the logs indicate
that all of the actions and redirects are taking place, it is just
serializing out a blank html page.
JD
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 12:07 PM
To: dev@cocoon.apache.org
Subject: Re: Flow Redirect The auth-fw with cocoon:/ Not working
I used the action with tons of redirection and it worked fine.
JD Daniels wrote:
There was a thread on this earlier, but there was not a solution I can see.
I had my auth pipelines defined in the root sitemap, and they worked great.
I need to move them to a sub-sitemap, but when I do, a blank html page is
serialized out to the client, although all the logs indicate the redirects
have taken place. the only change I can see is the addition of the cocoon://
protocol to my handler.
function login(form) {
var model = form.getModel();
form.showForm("login-display-pipeline");
cocoon.sendPage("doLogin.xml");
}
If I have this in my root sitemap. it works fine.
But if I move it to a subsitemap and configure the authentication handler:
anyone have any ideas?
JD
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
RE: Flow Redirect The auth-fw with cocoon:/ Not working
Posted by Nicolas Toper <nt...@yahoo.fr>.
Sorry to ask but have you tried cocoon:/ instead of cocoon:// ?
JD Daniels <jd...@datatrio.com> wrote:ROOT/sitemap.xmap:
uri-prefix="auth"/>
ROOT/modules/auth/sitemap.xmap
value="forms/login.xml"/>
src="context://resources/xsl/system/woody-styling.xsl"/>
value="{request:username}"/>
value="{request:password}"/>
value="{request:username}"/>
value="{request:password}"/>
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 12:23 PM
To: dev@cocoon.apache.org
Subject: RE: Flow Redirect The auth-fw with cocoon:/ Not working
Could you send us your sitemap (well not all, but you understood)
JD Daniels wrote:
the problem seems to be when the pipelines are defined in a sub sitemap.
I have the login, logout pipleines defined in sitemap under auth/
when they are defined in the root sitemap, they work fine. the logs indicate
that all of the actions and redirects are taking place, it is just
serializing out a blank html page.
JD
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 12:07 PM
To: dev@cocoon.apache.org
Subject: Re: Flow Redirect The auth-fw with cocoon:/ Not working
I used the action with tons of redirection and it worked fine.
JD Daniels wrote:
There was a thread on this earlier, but there was not a solution I can see.
I had my auth pipelines defined in the root sitemap, and they worked great.
I need to move them to a sub-sitemap, but when I do, a blank html page is
serialized out to the client, although all the logs indicate the redirects
have taken place. the only change I can see is the addition of the cocoon://
protocol to my handler.
function login(form) {
var model = form.getModel();
form.showForm("login-display-pipeline");
cocoon.sendPage("doLogin.xml");
}
If I have this in my root sitemap. it works fine.
But if I move it to a subsitemap and configure the authentication handler:
anyone have any ideas?
JD
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
---------------------------------
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
RE: Flow Redirect The auth-fw with cocoon:/ Not working
Posted by JD Daniels <jd...@datatrio.com>.
ROOT/sitemap.xmap:
<authentication-manager>
<handlers>
<handler name="userhandler">
<redirect-to uri="cocoon://auth/login.form"/>
<authentication uri="cocoon://auth/authUser.xsp"/>
</handler>
</handlers>
</authentication-manager>
<!-- Auth Module -->
<map:match pattern="auth">
<map:redirect-to uri="auth/"/>
</map:match>
<map:match pattern="auth/**">
<map:mount check-reload="yes" src="modules/auth/"
uri-prefix="auth"/>
</map:match>
ROOT/modules/auth/sitemap.xmap
<map:match pattern="login.form">
<map:call function="woody">
<map:parameter name="function" value="login"/>
<map:parameter name="form-definition"
value="forms/login.xml"/>
<map:parameter name="attribute-name" value="login"/>
</map:call>
</map:match>
<map:match pattern="login-display-pipeline">
<map:generate src="forms/loginTemplate.xml"/>
<map:transform type="woody"/>
<map:transform type="i18n">
<map:parameter name="locale" value="en-US"/>
</map:transform>
<map:transform src="xsl/basic2document.xsl"/>
<map:transform
src="context://resources/xsl/system/woody-styling.xsl"/>
<map:call resource="displayappweb"/>
<map:serialize/>
</map:match>
<map:match pattern="doLogin.xml">
<map:act type="auth-loggedIn">
<map:parameter name="handler" value="userhandler"/>
<map:redirect-to uri="loggedin.xml"/>
</map:act>
<map:act type="auth-login">
<map:parameter name="handler" value="userhandler"/>
<map:parameter name="username"
value="{request:username}"/>
<map:parameter name="password"
value="{request:password}"/>
<map:redirect-to uri="{request:contextPath}"/>
</map:act>
<map:generate src="xml/LoginFailed.xml"/>
<map:transform src="xsl/basic2document.xsl"/>
<map:call resource="displayappweb"/>
<map:serialize/>
</map:match>
<map:match pattern="authUser.xsp">
<map:generate type="serverpages" src="xsp/authUser.xsp">
<map:parameter name="username"
value="{request:username}"/>
<map:parameter name="password"
value="{request:password}"/>
</map:generate>
<map:transform type="write-source"/>
<map:serialize/>
</map:match>
<map:match pattern="logout.xml">
<map:act type="auth-logout">
<map:parameter name="handler" value="userhandler"/>
<map:redirect-to uri="/"/>
</map:act>
</map:match>
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 12:23 PM
To: dev@cocoon.apache.org
Subject: RE: Flow Redirect The auth-fw with cocoon:/ Not working
Could you send us your sitemap (well not all, but you understood)
JD Daniels <jd...@datatrio.com> wrote:
the problem seems to be when the pipelines are defined in a sub sitemap.
I have the login, logout pipleines defined in sitemap under auth/
when they are defined in the root sitemap, they work fine. the logs indicate
that all of the actions and redirects are taking place, it is just
serializing out a blank html page.
JD
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 12:07 PM
To: dev@cocoon.apache.org
Subject: Re: Flow Redirect The auth-fw with cocoon:/ Not working
I used the action with tons of redirection and it worked fine.
JD Daniels wrote:
There was a thread on this earlier, but there was not a solution I can see.
I had my auth pipelines defined in the root sitemap, and they worked great.
I need to move them to a sub-sitemap, but when I do, a blank html page is
serialized out to the client, although all the logs indicate the redirects
have taken place. the only change I can see is the addition of the cocoon://
protocol to my handler.
function login(form) {
var model = form.getModel();
form.showForm("login-display-pipeline");
cocoon.sendPage("doLogin.xml");
}
If I have this in my root sitemap. it works fine.
But if I move it to a subsitemap and configure the authentication handler:
anyone have any ideas?
JD
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
RE: Flow Redirect The auth-fw with cocoon:/ Not working
Posted by Nicolas Toper <nt...@yahoo.fr>.
Could you send us your sitemap (well not all, but you understood)
JD Daniels <jd...@datatrio.com> wrote:the problem seems to be when the pipelines are defined in a sub sitemap.
I have the login, logout pipleines defined in sitemap under auth/
when they are defined in the root sitemap, they work fine. the logs indicate
that all of the actions and redirects are taking place, it is just
serializing out a blank html page.
JD
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 12:07 PM
To: dev@cocoon.apache.org
Subject: Re: Flow Redirect The auth-fw with cocoon:/ Not working
I used the action with tons of redirection and it worked fine.
JD Daniels wrote:
There was a thread on this earlier, but there was not a solution I can see.
I had my auth pipelines defined in the root sitemap, and they worked great.
I need to move them to a sub-sitemap, but when I do, a blank html page is
serialized out to the client, although all the logs indicate the redirects
have taken place. the only change I can see is the addition of the cocoon://
protocol to my handler.
function login(form) {
var model = form.getModel();
form.showForm("login-display-pipeline");
cocoon.sendPage("doLogin.xml");
}
If I have this in my root sitemap. it works fine.
But if I move it to a subsitemap and configure the authentication handler:
anyone have any ideas?
JD
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
---------------------------------
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
RE: Flow Redirect The auth-fw with cocoon:/ Not working
Posted by JD Daniels <jd...@datatrio.com>.
the problem seems to be when the pipelines are defined in a sub sitemap.
I have the login, logout pipleines defined in sitemap under auth/
when they are defined in the root sitemap, they work fine. the logs indicate
that all of the actions and redirects are taking place, it is just
serializing out a blank html page.
JD
-----Original Message-----
From: Nicolas Toper [mailto:ntoper@yahoo.fr]
Sent: 2004-01-30 12:07 PM
To: dev@cocoon.apache.org
Subject: Re: Flow Redirect The auth-fw with cocoon:/ Not working
I used the action with tons of redirection and it worked fine.
JD Daniels <jd...@datatrio.com> wrote:
There was a thread on this earlier, but there was not a solution I can see.
I had my auth pipelines defined in the root sitemap, and they worked great.
I need to move them to a sub-sitemap, but when I do, a blank html page is
serialized out to the client, although all the logs indicate the redirects
have taken place. the only change I can see is the addition of the cocoon://
protocol to my handler.
function login(form) {
var model = form.getModel();
form.showForm("login-display-pipeline");
cocoon.sendPage("doLogin.xml");
}
If I have this in my root sitemap. it works fine.
But if I move it to a subsitemap and configure the authentication handler:
anyone have any ideas?
JD
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
Re: Flow Redirect The auth-fw with cocoon:/ Not working
Posted by Nicolas Toper <nt...@yahoo.fr>.
I used the action with tons of redirection and it worked fine.
JD Daniels <jd...@datatrio.com> wrote:There was a thread on this earlier, but there was not a solution I can see.
I had my auth pipelines defined in the root sitemap, and they worked great.
I need to move them to a sub-sitemap, but when I do, a blank html page is
serialized out to the client, although all the logs indicate the redirects
have taken place. the only change I can see is the addition of the cocoon://
protocol to my handler.
function login(form) {
var model = form.getModel();
form.showForm("login-display-pipeline");
cocoon.sendPage("doLogin.xml");
}
If I have this in my root sitemap. it works fine.
But if I move it to a subsitemap and configure the authentication handler:
anyone have any ideas?
JD
---------------------------------
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail