On Tue, 9 Jul 2002 [EMAIL PROTECTED] wrote:

> Hello Carsten,
>
>   thanks again for your patch for the Authentication Framework.
>   I tried it out and now can access my error messages with the
>   temp session context.
>   On the other side - with the new LoginAction.java I was not able to login
>   anymore - the authentication always failed.
>   So, I did some debugging and noticed, that the values of the parameters
>   I give with "request:nickname" and "request:password" were not
>   substituted

Is

<map:parameter name="parameter_name" value="request:username"/>

really correct? Should it not be

<map:parameter name="parameter_name" value="{request:username}"/>

?

Stephan Michels.

>       MyLoginAction: ********* param: request:password ******************
>                 MyLoginAction: ********* param: request:nickname
> ******************
>
> So I looked at the code and changed the new part back to the old and then
> everything worked again.
> The part I changed is:
>
>       if (enum != null) {
>                     for(int i = 0; i < enum.length; i++) {
>                     final String key = enum[i];
>                     if ( key.startsWith("parameter_") ) {
>                       authenticationParameters.setParameter( key.substring
> ("parameter_".length()),
>
> par.getParameter(key));
>
> back to:
>
>       if (enum != null) {
>             for(int i = 0; i < enum.length; i++) {
>                 final String key = enum[i];
>                 if ( key.startsWith("parameter_") ) {
>                     String value = par.getParameter(key);
>                     if ( value.startsWith("request:") ) {
>                         value = request.getParameter( value.substring(
> "request:".length()) );
>                         this.getLogger().debug("********* param: " + value
> + " ******************");
>                         if (value == null) value = "";
>                     }
>                     authenticationParameters.setParameter( key.substring(
> "parameter_".length()),
>                                                            value);
>                 }
>             }
>
>         }
>
> I think you donīt get the values of the request parameters in the new
> version.
>
> If I am wrong, please tell me
>
> Thanks,
>
> miHam
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to