Stephan Michels wrote: > > 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}"/> > > ? > It depends which version of Cocoon you use. If you use the HEAD, {request:username} is correct - if you use 2.0.3-dev, the other form is correct.
When we donated the authentication framework to Cocoon, the new InputModules didn't exist, so we invented our own notation just for this case, but with the new concept of InputModules it's much better and cleaner to use it instead of inventing an own version. So, again, if you use the latest version (which I recommend), {request:username} is correct. > > > 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 > > The code above was removed because of the reason explained at the beginning. The InputModules are now used. Thanks Carsten Carsten Ziegeler Chief Architect Open Source Group, S&N AG ------------------------------------------------------------------ Cocoon Consulting, Training and Projects ------------------------------------------------------------------ mailto:[EMAIL PROTECTED] http://www.s-und-n.de http://ziegeler.bei.t-online.de --------------------------------------------------------------------- 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]>