ijuma commented on code in PR #12229:
URL: https://github.com/apache/kafka/pull/12229#discussion_r900165661


##########
clients/src/main/java/org/apache/kafka/common/security/oauthbearer/secured/HttpAccessTokenRetriever.java:
##########
@@ -326,7 +326,7 @@ static String formatRequestBody(String scope) throws 
IOException {
             return requestParameters.toString();
         } catch (UnsupportedEncodingException e) {
             // The world has gone crazy!
-            throw new IOException(String.format("Encoding %s not supported", 
StandardCharsets.UTF_8.name()));
+            throw new IOException(String.format("Encoding %s not supported", 
StandardCharsets.UTF_8.name()), e);

Review Comment:
   Have we checked that we're not introducing a security vulnerability in these 
security classes by including the original exception?



-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to