Thanks Morley and Joerg, i found in the mail archive something that moved me forward.
now my sitemap looks as below and it seems to work. sure i need to rewrite it, cause looking at the mails on list i understood it is complicated, and anyway i need to make more tests and complete it with more feature. thanks a lot Flavio <!-- =========================== Pipelines ================================= --> <map:pipelines> <map:component-configurations> <authentication-manager> <handlers> <handler name="protArea"> <redirect-to uri="cocoon:/login"/> <authentication uri="cocoon:raw:/authenticate"/> </handler> </handlers> </authentication-manager> </map:component-configurations> <map:pipeline> <map:match pattern=""> <map:redirect-to uri="login"/> </map:match> <!-- ================= --> <!-- Simple login page --> <!-- ================= --> <map:match pattern="login"> <!-- if we are already logged in, redirect to the protected document --> <map:act type="auth-loggedIn"> <map:parameter name="handler" value="protArea"/> <map:redirect-to uri="protected/home"/> </map:act> <map:generate src="docs/login.xml"/> <map:transform src="stylesheets/simple-page2html.xsl"/> <!-- <map:transform type="encodeURL"/> --> <map:serialize/> </map:match> <!-- ========================================= --> <!-- Form target which performs auth service --> <!-- ========================================= --> <map:match pattern="do-login"> <!-- try to login --> <map:act type="auth-login"> <map:parameter name="handler" value="protArea"/> <map:parameter name="parameter_name" value="{request-param:username}"/> <map:redirect-to uri="protected/home"/> </map:act> <!-- something was wrong, try it again --> <map:redirect-to uri="login"/> </map:match> <!-- ================ --> <!-- Protected area --> <!-- ================ --> <map:match pattern="protected/**"> <map:act type="auth-protect"> <map:parameter name="handler" value="protArea"/> <map:match pattern="protected/home"> <map:generate src="docs/home.xml"/> <!-- <map:transform type="session"/> --> <map:transform src="stylesheets/apache.xsl"/> <!-- <map:transform type="encodeURL"/> --> <map:serialize/> </map:match> <map:match pattern="protected/cerca-operaz.html"> <map:act set="process"> <map:parameter name="descriptor" value="context://riskIdem/docs/operaz-form.xml"/> <map:generate type="serverpages" src="docs/conferma-operaz.xsp"/> <map:transform src="stylesheets/apache.xsl"/> <map:serialize/> </map:act> <map:generate type="serverpages" src="docs/cerca-operaz.xsp"/> <map:transform src="stylesheets/apache.xsl"/> <map:serialize/> </map:match> <map:match pattern="protected/cerca-operaz.xml"> <map:act set="process"> <map:parameter name="descriptor" value="context://riskIdem/docs/operaz-form.xml"/> <map:generate type="serverpages" src="docs/conferma-operaz.xsp"/> <map:serialize type="xml"/> </map:act> <map:generate type="serverpages" src="docs/cerca-operaz.xsp"/> <map:serialize type="xml"/> </map:match> </map:act> <!-- something was wrong, redirect to login page --> <map:redirect-to uri="login"/> </map:match> <!-- ========================================= --> <!-- Logout link which invalidates the session --> <!-- ========================================= --> <map:match pattern="do-logout"> <map:act type="auth-protect"> <map:parameter name="handler" value="protArea"/> <map:act type="auth-logout"/> </map:act> <map:redirect-to uri="login"/> </map:match> </map:pipeline> <map:pipeline internal-only="true"> <!-- This is the authentication resource --> <map:match pattern="authenticate"> <map:generate src="docs/userlist.xml"/> <map:transform src="stylesheets/authenticate.xsl"> <map:parameter name="use-request-parameters" value="true"/> </map:transform> <map:serialize type="xml"/> </map:match> <map:handle-errors> <map:transform src="stylesheets/system/error2document.xsl"/> <map:transform src="stylesheets/apache.xsl"/> <map:serialize status-code="500"/> </map:handle-errors> </map:pipeline> </map:pipelines> </map:sitemap> >-- Original Message -- >Reply-To: [EMAIL PROTECTED] >Date: Sat, 24 Jan 2004 03:43:05 +0100 >From: Joerg Heinicke <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: problem with authentication > > >On 23.01.2004 17:57, Morley Howell wrote: > Flavio, > > Your sitemap looks a little odd. You have a matcher for 'protected', and > then inside that matcher, you have another matcher for '*-operaz.html'. If a > URL matches the 'protected' patter >, it cannot match the '*-operaz.html' > pattern as well, so that chunk of your sitemap can never be reached. > > This doesn't really explain why you're getting the resource not found error, It does as it is the error message "no pipeline matched >request". It should probably be "protected/**". Joerg > but it might be a clue. What do the URLs for the links on your main menu > look like? > > Morley > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]