There was a thread a couple of weeks ago over this.. it seemed to have died
with no solution, but i have found another way to trigger it...

I did a fresh cvs head checkout and clean build just now. same behavior.

The entire thing worked perfectly.. Until I moved the login pipelines to a
sitemap under auth/

Now all the redirects stop working. All the actions take place, ie logging
in, logging out work, but I never get re-directed. it serializes out a blank
html page with a <pre> in it.

The sitemap log indicates that redirects are taking place.... but they
aren't...

INFO  [sitemap] (/root/auth/login.form) Thread-9/ForwardRedirector:
Redirecting to 'cocoon:/login-display-pipeline'
INFO  [sitemap]
(/root/auth/0650325c2a0316350b34137d0b1a2b3104517c81.continue)
Thread-8/ForwardRedirector: Redirecting to 'cocoon:/doLogin.xml'
INFO  [sitemap]
(/argo/auth/0650325c2a0316350b34137d0b1a2b3104517c81.continue)
Thread-8/RedirectToURINode: Redirecting to '/root'

My sitemaps:

Root:
                    <handler name="userhandler">
                        <redirect-to uri="cocoon://auth/login.form"/>
                        <authentication uri="cocoon://auth/authUser.xsp"/>
                    </handler>

        <!-- 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>

auth/
            <!-- Login -->
            <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>

auth/flow

function login(form) {
    var model = form.getModel();
    form.showForm("login-display-pipeline");
    cocoon.sendPage("doLogin.xml");
}

Reply via email to