You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2022/06/17 14:17:14 UTC

[GitHub] [kafka] ijuma commented on a diff in pull request #12229: MINOR: Include the inner exception stack trace when re-throwing an exception

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-unsubscribe@kafka.apache.org

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