Alec de Zegher created FELIX-4400:
-------------------------------------
Summary: addRole does not return the created user, but always null
in MongoDB Useradmin
Key: FELIX-4400
URL: https://issues.apache.org/jira/browse/FELIX-4400
Project: Felix
Issue Type: Bug
Reporter: Alec de Zegher
Priority: Minor
According to the OSGI specifications, the created Role should be returned when
calling addRole(). The file based UserAdmin does this correcty, but the mongoDB
implementation always returns null.
This can be very easly be solved by changing the return statement of the
"AddRole" method in MongoDBStore.java
from:
return role;
to:
return getRole(roleName);
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)