github-advanced-security[bot] commented on code in PR #9619:
URL: https://github.com/apache/inlong/pull/9619#discussion_r1465824212
##########
inlong-manager/manager-common/src/main/java/org/apache/inlong/manager/common/util/HttpUtils.java:
##########
@@ -88,7 +89,18 @@
if (!statusCode.is2xxSuccessful()) {
log.error("request error for {}, status code {}, body {}",
url, statusCode, body);
}
-
+ if (HttpStatus.TEMPORARY_REDIRECT.equals(exchange.getStatusCode())
+ &&
CollectionUtils.isNotEmpty(exchange.getHeaders().get(HttpHeaders.LOCATION))) {
+ exchange =
restTemplate.exchange(exchange.getHeaders().getFirst(HttpHeaders.LOCATION),
method, request,
Review Comment:
## Server-side request forgery
Potential server-side request forgery due to a [user-provided value](1).
[Show more
details](https://github.com/apache/inlong/security/code-scanning/72)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]