chore(vulnerability): Log Injection (#11090)

This commit is contained in:
Pinaki Bhattacharjee 2024-08-03 18:30:16 +05:30 committed by GitHub
parent 6704d44470
commit a8ef7b68c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -66,7 +66,8 @@ public class SsoCallbackController extends CallbackController {
public CompletionStage<Result> handleCallback(String protocol, Http.Request request) {
if (shouldHandleCallback(protocol)) {
log.debug(String.format("Handling SSO callback. Protocol: %s", protocol));
log.debug("Handling SSO callback. Protocol: {}",
_ssoManager.getSsoProvider().protocol().getCommonName());
return callback(request)
.handle(
(res, e) -> {

View File

@ -75,7 +75,7 @@ public class GraphQLController {
try {
bodyJson = mapper.readTree(jsonStr);
} catch (JsonProcessingException e) {
log.error("Failed to parse json {}", jsonStr);
log.error("Failed to parse json ", e);
return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.BAD_REQUEST));
}