• ROLE problems

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #55101  by bpurgar
 
OpenKM CE 7.0.2, MariaDB/MySQL, DatabasePrincipalAdapter, no LDAP.

Problem exists even on a clean fresh installation.

Steps to reproduce:
1. Create a new role, for example TEST.
2. Create a new user.
3. During user creation, the Roles field shows all roles and TEST can be selected.
4. Save the user.
5. Open the same user again with Edit user.
6. Try to add another role, for example TEST or ROLE_PRODAJA.
7. The role selector does not show the role. Typing the exact role name gives "No results match".
8. If I manually insert the role into OKM_USER_ROLE through SQL, then the role appears in the user edit screen and can be removed.

Database checks:
- OKM_ROLE contains all roles.
- ROL_ACTIVE = T.
- OKM_USER_ROLE accepts manual inserts.
- The issue is reproducible on a clean OpenKM 7.0.2 installation, so it is not caused by migration.

Expected behavior:
Edit user should show available roles in the same way as Create user.
Attachments
openkm1.png
openkm1.png (75.49 KiB) Viewed 616 times
openkm2.png
openkm2.png (69.19 KiB) Viewed 616 times
openkm3.png
openkm3.png (65.98 KiB) Viewed 616 times
 #55102  by jllort
 
I have added an internal issue to fix it. When be solved I will update.
 #55104  by jllort
 
The error have been fixed in the code and you will get solved in the next release of the OpenKM 7.0.3

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.