Hello,
Before reading documentation about the AdminRole and UserRole, I deleted the AdminRole and created my own "Administrator" at the adminitration panel. After that I've got 403 error at login (for okmAdmin user). Then I changed the default role names at "/server/default/deploy/OpenKM.war/WEB-INF.web.xml" as follows:
Now I can login, but after login I get error "OKM-012015(GetRootFolder): path doesnt exist" and nothing else is loading.
As how much i understand - somewhere something is wrong with the role name "Administrator" and "AdminRole".
How can I fix this situation (for e.g. change the roles back to AdminRole or)? No files or directories are made, so I would be fine even with data reset (users and files). I dont really want to reinstall everything.
Before reading documentation about the AdminRole and UserRole, I deleted the AdminRole and created my own "Administrator" at the adminitration panel. After that I've got 403 error at login (for okmAdmin user). Then I changed the default role names at "/server/default/deploy/OpenKM.war/WEB-INF.web.xml" as follows:
Code: Select all
...
<security-constraint>
<web-resource-collection>
<web-resource-name>OpenKM Protected Area</web-resource-name>
<!-- GWT -->
<url-pattern>/frontend/*</url-pattern>
<!-- JSPs -->
<url-pattern>/admin/*</url-pattern>
<url-pattern>/mobile/*</url-pattern>
<url-pattern>/mobile-nt/*</url-pattern>
<!-- Servlets -->
<url-pattern>/RepositoryStartup</url-pattern>
<url-pattern>/TextToSpeech</url-pattern>
<url-pattern>/Test</url-pattern>
<url-pattern>/frontend/*</url-pattern>
<url-pattern>/extension/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>Administrator</role-name>
<role-name>UserRole</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>OpenKM</realm-name>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/login.jsp?error=1</form-error-page>
</form-login-config>
</login-config>
<security-role>
<description>Admin user access</description>
<role-name>Administrator</role-name>
</security-role>
<security-role>
<description>General user access</description>
<role-name>UserRole</role-name>
</security-role>
Now I can login, but after login I get error "OKM-012015(GetRootFolder): path doesnt exist" and nothing else is loading.
As how much i understand - somewhere something is wrong with the role name "Administrator" and "AdminRole".
How can I fix this situation (for e.g. change the roles back to AdminRole or)? No files or directories are made, so I would be fine even with data reset (users and files). I dont really want to reinstall everything.
