[
https://issues.apache.org/jira/browse/HADOOP-10481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13989801#comment-13989801
]
Haohui Mai commented on HADOOP-10481:
-------------------------------------
{code}
+ signer = new Signer(signatureSecret.getBytes("UTF-8"));
{code}
String.getBytes(Charsets.UTF_8) should be used instead.
> Fix new findbugs warnings in hadoop-auth
> ----------------------------------------
>
> Key: HADOOP-10481
> URL: https://issues.apache.org/jira/browse/HADOOP-10481
> Project: Hadoop Common
> Issue Type: Sub-task
> Reporter: Haohui Mai
> Assignee: Swarnim Kulkarni
> Labels: newbie
> Attachments: HADOOP-10481.1.patch.txt
>
>
> The following findbugs warnings need to be fixed:
> {noformat}
> [INFO] --- findbugs-maven-plugin:2.5.3:check (default-cli) @ hadoop-auth ---
> [INFO] BugInstance size is 2
> [INFO] Error size is 0
> [INFO] Total bugs: 2
> [INFO] Found reliance on default encoding in
> org.apache.hadoop.security.authentication.server.AuthenticationFilter.init(FilterConfig):
> String.getBytes()
> ["org.apache.hadoop.security.authentication.server.AuthenticationFilter"] At
> AuthenticationFilter.java:[lines 76-455]
> [INFO] Found reliance on default encoding in
> org.apache.hadoop.security.authentication.util.Signer.computeSignature(String):
> String.getBytes() ["org.apache.hadoop.security.authentication.util.Signer"]
> At Signer.java:[lines 34-96]
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)