cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 26571] New: - Flow auth-fw Defined in subsitemap Fails Serialize Successful Login And Logout
Date Sun, 01 Feb 2004 02:43:43 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26571>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26571

Flow auth-fw Defined in subsitemap Fails Serialize Successful Login And Logout

           Summary: Flow auth-fw Defined in subsitemap Fails Serialize
                    Successful Login And Logout
           Product: Cocoon 2
           Version: Current CVS 2.1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: sitemap components
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: jd@datatrio.com


Defining auth-fw pipelines in a sub-sitemap and controlling with flow results 
in a failed serialization. With the authentication handler configured as 
below, There are no errors logged. In fact, it logs the redirects as having 
had take place. It has been suggested to change to : 
uri="cocoon:raw:///auth/authUser.xsp", which  results in :  
java.lang.RuntimeException: The current URI (/auth/authUser.xsp) doesn't start 
with given prefix (auth)

Both a successful login, as well as an already logged-in match both serialize 
as blank html with no erros.

How to reproduce:

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

Mime
View raw message