You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using GetCurrentUser() method to obtain the current and logged user. But when I tried to get all memberships I realized it did not return any item at all.
An used user example is attached. Some fields were removed for security reasons.
The following code shows the issue:
RedmineManager mgr = RedmineManagerFactory.createWithUserAuth(this.URI, username, password);
UserManager umgr = mgr.getUserManager();
try {
User u = umgr.getCurrentUser().
Collection<Membership> mc = u.getMemberships();
System.out.println(mc.size()); // Prints 0
} catch (RedmineException e) {
throw new AuthenticationException(e);
}
Hi,
I am using GetCurrentUser() method to obtain the current and logged user. But when I tried to get all memberships I realized it did not return any item at all.
An used user example is attached. Some fields were removed for security reasons.
The following code shows the issue:
I've tested this code using several URIs such as http://www.hostedredmine.com/
Thanks in advance
current_modified.zip
The text was updated successfully, but these errors were encountered: