Page 1 of 1

Administration permission errors

Posted: Sat Aug 30, 2014 12:43 pm
by daniel_locious
Hi guys,

I tried to add some permissions to existing admin users, but when I delete them I got:
DynamicEntityRemoteService - Problem removing org.broadleafcommerce.openadmin.server.security.domain.AdminPermissionImpl
[artifact:mvn] org.broadleafcommerce.common.exception.ServiceException: Problem removing entity : null
[artifact:mvn] at org.broadleafcommerce.openadmin.server.service.persistence.module.BasicPersistenceModule.remove(BasicPersistenceModule.java:993)
[artifact:mvn] at org.broadleafcommerce.openadmin.server.service.persistence.PersistenceManagerImpl.remove(PersistenceManagerImpl.java:644)
[artifact:mvn] at org.broadleafcommerce.openadmin.server.service.DynamicEntityRemoteService$5.execute(DynamicEntityRemoteService.java:203)
[artifact:mvn] at org.broadleafcommerce.openadmin.server.service.DynamicEntityRemoteService$5.execute(DynamicEntityRemoteService.java:198)
[artifact:mvn] at org.broadleafcommerce.openadmin.server.service.persistence.PersistenceThreadManager.operation(PersistenceThreadManager.java:33)
[artifact:mvn] at org.broadleafcommerce.openadmin.server.service.DynamicEntityRemoteService.remove(DynamicEntityRemoteService.java:198)
[artifact:mvn] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
.....


I believe this is because of a bug in org.broadleafcommerce.openadmin.server.service.persistence.module.BasicPersistenceModule.remove() Line 978, the check of .getRequired() some time returns null rather than boolean, as it's Boolean.

I've updated to the latest ver 3.1.8-GA and still got the same problem

Another question is, after I assigned permission to an admin user, such as "manage permission", when I login as that user, I can see the link of security > permission, but when I click into it, the page gives a 403 "access is denied".

Any ideas, guys?

Regards,

Dan

Re: Administration permission errors

Posted: Wed Sep 03, 2014 11:20 pm
by phillipuniverse
This looks like a bug to me. Could you open an issue on https://github.com/BroadleafCommerce/Br ... rce/issues? And can you reference a case to reproduce the problem?

Try giving it the 'All Permissions' permission rather than just 'manage' permissions.

Re: Administration permission errors

Posted: Wed Sep 03, 2014 11:20 pm
by phillipuniverse
You might also have to give the admin user 'admin user management' permissions.