Skip to content
Snippets Groups Projects
Verified Commit 67084d69 authored by Hugo Renard's avatar Hugo Renard
Browse files

debug commit

parent 96a2ac44
No related branches found
No related tags found
No related merge requests found
Pipeline #959 passed with stage
in 24 seconds
...@@ -102,8 +102,21 @@ public class UserAdapter extends Adapter<UserModel, UserResource> { ...@@ -102,8 +102,21 @@ public class UserAdapter extends Adapter<UserModel, UserResource> {
.forEach(r -> rolesSet.add(r)); .forEach(r -> rolesSet.add(r));
// Bug when new user. // Bug when new user.
try { try {
user.getRoleMappingsStream().filter((r) -> r.getFirstAttribute("scim").equals("true")) var roleStream = user.getRoleMappingsStream();
.map((r) -> r.getName()).forEach(r -> rolesSet.add(r)); if (rolesSet == null) {
LOGGER.error("role stream is null");
}
roleStream.filter((r) -> {
var attr = r.getFirstAttribute("scim");
if (attr == null) {
LOGGER.debug("attribute is null");
return false;
}
return attr.equals("true");
}).map((r) -> r.getName()).forEach(r -> rolesSet.add(r));
// user.getRoleMappingsStream().filter((r) -> r.getFirstAttribute("scim").equals("true"))
// .map((r) -> r.getName()).forEach(r -> rolesSet.add(r));
} catch (Exception e) { } catch (Exception e) {
LOGGER.error(e); LOGGER.error(e);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment