cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From olivier demah <ode...@messagio.com>
Subject Re: XSP Page : Session and Authentication
Date Fri, 26 Mar 2004 08:21:55 GMT
i meet another big problem with the same subject.

Currently i make a blog.
On this one ; you can browse all pages except for posting anything.
so Authentication Framework enters in the game to manage that.
BUT : i only need to protect some page (for posting) not for reading the 
page that displays the complet list of all the post.
Where is the problem you will ask ?
here is the problem :
in the sitemap ; if you dont do the following pipeline on all pages you 
loose the Authentication Context !

with auth-protect :

    <map:match pattern="foo.html">
        <map:act type="auth-protect">
            <map:parameter name="handler" value="mblog"/>
            <map:aggregate element="root" label="content">
                <map:part src="cocoon:/index.xml"/>
                <map:part src="cocoon:/blog_user.xsp"/>
            </map:aggregate>

            <map:transform src="stylesheets/foo.xslt"/>
        <map:serialize type="html"/>
        <map:serialize/>
        </map:act>

the display is ok

without the following errors occur :

Request URI

foo.html

cause

org.apache.cocoon.ProcessingException: SessionManager.getContextFragment: Context 'authentication'
not found.



So my question is :
How can i keep the authentication Context without protecting page 
(without auth-protect i mean) ?

Regards.



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


Mime
View raw message