Wiki Markup |
---|
{rate} 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 ;) h4. Anonymous user : {code} <%@ page contentType="text/plain" %> <%@ page import="info.magnolia.cmsimportexport.module.ModuleUtilBootstrapUtil"%> <%@ page import="javax.jcr.ImportUUIDBehavior"%> <% ModuleUtilBootstrapUtil.bootstrap(new String[]{"/mgnl-bootstrappath/coreto/users.system.anonymous.xml"}, true, ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING); %> {code} h4. Anonymous role : {code} <%@ page contentType="text/plain" %> <%@ page import="info.magnolia.cmsimportexport.module.ModuleUtilBootstrapUtil"%> <%@ page import="javax.jcr.ImportUUIDBehavior"%> <% // on an author instance: ModuleUtilBootstrapUtil.bootstrap(new String[]{"/mgnl-bootstrappath/coreto/userroles.anonymous.xml"}, true, ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING); // on an public instance: ModuleUtilBootstrapUtil.bootstrap(new String[]{"/mgnl-bootstrappath/coreto/public/userroles.anonymous.xml"}, true, ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING); %> {code} |
Page History
Overview
Content Tools