Page 1 of 1

PathNotFoundException /okm:trash

PostPosted:Tue Aug 16, 2016 12:41 am
by qq95788
Hello,
I use OpenKM Version: 6.3.1 (build: 8235),It has an error "PathNotFoundException /okm:trash"when I login.
I found /okm:trash can't set permissions.If I add new role, it can't create folder in /okm:trash.
How to manually set this permissions?

Thank you

Re: PathNotFoundException /okm:trash

PostPosted:Tue Aug 16, 2016 8:41 am
by jllort
Does your user have ROLE_USER ? otherwise the application is not able to create the missing folders.
Are you login with default UI ? or from webservices ?

Re: PathNotFoundException /okm:trash

PostPosted:Tue Aug 16, 2016 1:23 pm
by qq95788
Thank you for your respond.
If the user use ROLE_USER,It doesn't have error.
If the user use the new role,the error is displayed.
In the path of /okm:trash,I can't add the new role to access.the button is hide.

Re: PathNotFoundException /okm:trash

PostPosted:Tue Aug 16, 2016 6:11 pm
by jllort
Understood. Alls users must have ROLE_USER or ROLE_ADMIN ( at least one of these two roles, these are special roles used for getting connection to the repository ). The idea is a user must have ROLE_USER and for example other roles like ROLE_X. Because all users must have ROLE_USER for connecting to the application, this role should not be propagated across the repositorio ( at okm:root or below, the first action of the administrator is remove it from okm:root and optionally from okm:categories and okm:templates, in the other nodes is right and should not be removed ). And then set read grant - for example - for main nodes, for ROLE_X etc...

About ROLE_ADMIN role, this has two functions, first one grant login access and second promote user to super user ( that means has not any security restriction, is like security does not exists for himself ).

Hope with it, the way of setting security will be more clear to you.