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' pattern, 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
-----Original Message----- From: Flavio Palumbo [mailto:[EMAIL PROTECTED] Sent: Friday January 23, 2004 6:27 AM To: [EMAIL PROTECTED] Subject: RE: problem with authentication
sorry for the first post, the handler name was wrong, this should be better but the problem is the same. thanks Flavio
hi all,
i try to insert the authentication-fw example in my sitemap with no luck ; i'am able to start with the login page and authenticate me but when i get my main menu every link i choose i always get "resource not found no pipeline matched req
est".
i'm sure this is a newbie mistake but can't find where is.
can somebody help me ?
thanks a lot
Flavio
<!-- =========================== Pipelines ================================= -->
<map:pipelines>
<map:component-confi
urations>
<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"/>
</map:act> <map:generate src="docs/login.xml"/> <map:transform src="stylesheets/simple-page2html.xsl"/> <map:transform type="encodeURL"/> <map:serialize/> </ma
: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"/> </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:generate src="docs/home.xml"/> <map:transform type="session"/> <map:transform src="stylesheets/apache.xsl"/>
<map:transform type="encodeURL"/>
<map:serialize/>
<map:match pattern="*-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/{1}-
peraz.xsp"/>
<map:transform src="stylesheets/apache.xsl"/> <map:serialize/> </map:match>
<map:match pattern="*-operaz.xml"> <map:act set="process"> <map:parameter name="descrip
or" 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/{1}-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:p
rameter 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-
ode="500"/>
</map:handle-errors>
</map:pipeline> </map:pipelines>
</map:sitemap>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com
ands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
