[ 
https://issues.apache.org/jira/browse/FELIX-4400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

J.W. Janssen updated FELIX-4400:
--------------------------------

    Component/s: User Admin

> 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
>          Components: User Admin
>            Reporter: Alec de Zegher
>            Assignee: J.W. Janssen
>            Priority: Minor
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> 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)

Reply via email to