mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-05 07:04:44 +00:00
chore(vulnerability): Log Injection (#11090)
This commit is contained in:
parent
6704d44470
commit
a8ef7b68c8
@ -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) -> {
|
||||
|
||||
@ -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));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user