Skip to content

Commit

Permalink
Closes kadai-io#32 - Fix SonarCloud
Browse files Browse the repository at this point in the history
  • Loading branch information
CRoberto1926 committed Oct 10, 2024
1 parent 1514cde commit 3b94f64
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ public List<AccessIdRepresentationModel> searchUsersAndGroupsAndPermissions(fina
isInitOrFail();
testMinSearchForLength(name);

LOGGER.debug("Starting LDAP search for users, groups and permissions... [name={}]", name);
String sanitizedNameForLog = LogSanitizer.stripLineBreakingChars(name);

LOGGER.debug(
"Starting LDAP search for users, groups and permissions... [name={}]", sanitizedNameForLog);

List<AccessIdRepresentationModel> accessIds = new ArrayList<>();
if (nameIsDn(name)) {
Expand All @@ -116,7 +119,7 @@ public List<AccessIdRepresentationModel> searchUsersAndGroupsAndPermissions(fina

LOGGER.debug(
"LDAP search for users, groups and permissions completed! [name={}, accessIds={}]",
name,
sanitizedNameForLog,
accessIds);

sortListOfAccessIdResources(accessIds);
Expand Down

0 comments on commit 3b94f64

Please sign in to comment.