Hi, many thanks for your test case - I just found the bug and have committed a change to the cvs; only one single class the loggedin action is affected.
Many thanks for your help Carsten > -----Original Message----- > From: Frederic Gaus [mailto:[EMAIL PROTECTED] > Sent: Monday, October 20, 2003 5:01 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Problem with authentication-framework > > > >Thanks for the info, can you please also post the except from > >the sitemap? Are you using the cocoon: protocol? > > Well, thats a bit complicated ... I'll try: > > To open the child-window I use: > > <map:match pattern="popup-*"> > <map:generate src="cocoon:/content-{1}"/> > <map:transform src="stylesheets/popup.xsl"/> > <map:transform type="encodeURL"/> > <map:transform src="stylesheets/reallink.xsl"/> > <map:transform src="stylesheets/onClick.xsl"/> > <map:serialize/> > </map:match> > > After closing the child-window and clicking on a link in the > parent-window, the following sitemap is used. > > <map:match pattern="main-*"> > <map:call resource="main"> > <map:parameter name="content" value="{1}"/> > <map:parameter name="use-request-parameters" value="true"/> > </map:call> > </map:match> > > <map:resource name="main"> > <map:generate src="aggregate.xsp" type="serverpages"> > <map:parameter name="content" value="{content}"/> > <map:parameter name="menubar" value="{menubar}"/> > </map:generate> > <map:transform type="cinclude" /> > <map:transform src="stylesheets/main.xsl" label="content"> > <map:parameter name="loginfaild" value="{loginfaild}"/> > </map:transform> > <map:transform type="encodeURL" /> > <map:transform src="stylesheets/reallink.xsl"/> > <map:transform src="stylesheets/onClick.xsl"/> > <map:serialize/> > </map:resource> > > The aggregate.xsp aggegates (among others) the mycaplab-portlet, which > causes the problem because of the auth-loggedIn arround. > > <map:match pattern="mycaplab"> > <map:act type="auth-loggedIn"> > <map:parameter name="handler" value="authLN"/> > <map:act type="auth-protect"> > <map:parameter name="handler" value="authLN"/> > <map:generate src="documents/loggedin.xml"/> > <map:transform type="session"/> > <map:transform src="stylesheets/loggedin.xsl"/> > <map:transform type="encodeURL"/> > <map:serialize type="xml"/> > </map:act> > </map:act> > <map:generate src="documents/mycaplab.xml"/> > <map:transform src="stylesheets/mycaplab.xsl"/> > <map:transform type="encodeURL"/> > <map:serialize/> > </map:match> > > Using this Pipeline, there occures no NullPointerException: > > <map:match pattern="mycaplab"> > <!-- > <map:act type="auth-loggedIn"> > <map:parameter name="handler" value="authLN"/> > <map:act type="auth-protect"> > <map:parameter name="handler" value="authLN"/> > <map:generate src="documents/loggedin.xml"/> > <map:transform type="session"/> > <map:transform src="stylesheets/loggedin.xsl"/> > <map:transform type="encodeURL"/> > <map:serialize type="xml"/> > </map:act> > </map:act> > --> > <map:generate src="documents/mycaplab.xml"/> > <map:transform src="stylesheets/mycaplab.xsl"/> > <map:transform type="encodeURL"/> > <map:serialize/> > </map:match> > > > I hope that helps you to help me ;-) > > Greetings > > Freddy > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
