cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laurent Trillaud" <ltrill...@jouve.fr>
Subject RE : RE : [auth-fw] NPE in Application Manager
Date Thu, 30 Oct 2003 08:39:55 GMT
Hmmm, the fix worked, but I just going to build a brand new cocoon from
the Cocoon-2.1 CVS and the bug is still here.
It seems that the fix has been overwritten!
Laurent Trillaud 

> -----Message d'origine-----
> De : Carsten Ziegeler [mailto:cziegeler@s-und-n.de]
> Envoyé : vendredi 24 octobre 2003 15:03
> À : users@cocoon.apache.org
> Objet : RE : [auth-fw] NPE in Application Manager
> 
> Laurent Trillaud wrote:
> > Great, it's working.  :-)
> 
> > But I have detected something weird, or may be something that I
don't
> > understand.
> > If you declare an application without the loadondemand, this
application
> > is loaded at login time, but this loading fails in
> > AuthenticationContext@setXML#255 because the application name is not
> > set.
> > If I put the name in the sitemap like that the loading succeeds.
> > ...
> > <map:act type="auth-login">
> >  <map:parameter name="handler" value="portalhandler"/>
> >  <map:parameter name="application" value="MyApp"/>
> >  <map:parameter name="parameter_name" value="{request-param:name}"/>
> >  <map:parameter name="parameter_password"
> > value="{request-param:password}"/>
> >  <map:redirect-to uri="portal"/>
> > </map:act>
> > ...
> > I think that this design is weird. In
> > DefaultAuthenticationManager@login#259, we have a loop on each
> > application in the handler but only one will be loaded.
> > Is it the right design or is it a bug?
> 
> It's another bug :) I just committed a fix, so it should now
> work for you (hopefully). You shouldn't need to specify
> the application in the login action.
> 
> Thanks for spotting this!
> 
> Carsten
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org



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


Mime
View raw message