github-advanced-security[bot] commented on code in PR #15453:
URL: https://github.com/apache/druid/pull/15453#discussion_r1409938746
##########
server/src/test/java/org/apache/druid/server/AsyncManagementForwardingServletTest.java:
##########
@@ -317,6 +317,21 @@
Assert.assertTrue("overlord called", OVERLORD_EXPECTED_REQUEST.called);
}
+ @Test
+ public void testProxyEnebledCheck() throws Exception
+ {
+ HttpURLConnection connection = ((HttpURLConnection)
+ new URL(StringUtils.format("http://localhost:%d/proxy/enabled",
port)).openConnection());
+ connection.setRequestMethod("GET");
+
+ Assert.assertEquals(200, connection.getResponseCode());
+ byte[] bytes = new byte[connection.getContentLength()];
+ connection.getInputStream().read(bytes);
Review Comment:
## Ignored error status of call
Method testProxyEnebledCheck ignores exceptional return value of
InputStream.read.
[Show more
details](https://github.com/apache/druid/security/code-scanning/6017)
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]