Hi list,

I'm trying to pass to the new version of Magnolia (revision 6981) and I met the new Login system in the SecurityFilter code.
It seems that the goal of that new version is to load in a Freemarker way the new "/mgnl-resourcecs/loginForm/login.html".
Actually, before those updates, I was already able in my modified version of Magnolia to load such a Freemarker page.
  • I had changed the value of conf/server/login/LoginForm to /.magnolia/pages/login.html
  • I added a LoginPage.java in magnolia-module-admininterface/src/main/java/info/magnolia/module/admininterface/pages/
  • I added a LoginPage.html page in magnolia-module-admininterface/src/main/resources/info/magnolia/module/admininterface/pages/ .
That was working great until the last modifs (that is to say, the replacement of request.getRequestDispatcher(loginUrl).include(request, response) in revision 6902 by scharles).Now I have that stack :
ERROR  info.magnolia.cms.security.SecurityFilter SecurityFilter.java(authenticate:185) 30.10.2006 16:35:19  exception while writing login template
java.io.FileNotFoundException: Template /.magnolia/pages/login.html not found.
    at freemarker.template.Configuration.getTemplate(Configuration.java:488)
    at freemarker.template.Configuration.getTemplate(Configuration.java:451)


So my question is : why didn't you just do the 3 simple steps ? Is there any special issue you know in order to call the FreeMarkerUtil.getDefaultConfiguration().getTemplate(loginUrl) then tmpl.process(...) inside the SecurityFilter ?

Thanks,
    Anthony

Reply via email to