| Your Rating: |
![]() ![]() ![]() ![]()
|
Results: |
![]() ![]() ![]() ![]()
|
5 | rates |
If for some reason your anonymous user can't be loaded anymore, this script should help, if applied as per Executing fix scripts. Recreating the superuser is very similar, just get the correct bootstrap files ![]()
Anonymous user :
<%@ page contentType="text/plain" %> <%@ page import="info.magnolia.cms.module.ModuleUtil"%> <%@ page import="javax.jcr.ImportUUIDBehavior"%> <% ModuleUtil.bootstrap(new String[]{"/mgnl-bootstrap/core/users.system.anonymous.xml"}, true, ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING); %>
Anonymous role :
<%@ page contentType="text/plain" %> <%@ page import="info.magnolia.cms.module.ModuleUtil"%> <%@ page import="javax.jcr.ImportUUIDBehavior"%> <% // on an author instance: ModuleUtil.bootstrap(new String[]{"/mgnl-bootstrap/core/userroles.anonymous.xml"}, true, ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING); // on an public instance: ModuleUtil.bootstrap(new String[]{"/mgnl-bootstrap/core/public/userroles.anonymous.xml"}, true, ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING); %>

Comments (2)
Jun 10, 2009
Andrew Liles says:
Beware that, as of Magnolia v4.0.1, the utility explained above, ModuleUtil, no ...Beware that, as of Magnolia v4.0.1, the utility explained above, ModuleUtil, no longer works - see the release notes.
In my case, all I needed to do was to restore the anonymous account's password to its default value. That default value is anonymous.
Feb 25, 2010
Zdenek Skodik says:
You can use info.magnolia.importexport.BootstrapUtil instead.You can use info.magnolia.importexport.BootstrapUtil instead.