Dashboard > Community Wiki > ... > Troubleshooting > Recreating the anonymous user
Recreating the anonymous user Log In View a printable version of the current page.

Added by GrĂ©gory Joseph , last edited by GrĂ©gory Joseph on May 07, 2008  (view change)
Labels: 
(None)

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);
%>
Powered by a free Atlassian Confluence Open Source Project License granted to Magnolia International. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators