You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Alec de Zegher (JIRA)" <ji...@apache.org> on 2014/01/22 18:25:20 UTC

[jira] [Created] (FELIX-4400) addRole does not return the created user, but always null in MongoDB Useradmin

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)