You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "J.W. Janssen (JIRA)" <ji...@apache.org> on 2014/01/23 10:27:39 UTC
[jira] [Updated] (FELIX-4400) addRole does not return the created
user, but always null in MongoDB Useradmin
[ 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)