[
https://issues.apache.org/jira/browse/HADOOP-14272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15971169#comment-15971169
]
Hudson commented on HADOOP-14272:
---------------------------------
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11591 (See
[https://builds.apache.org/job/Hadoop-trunk-Commit/11591/])
HADOOP-14272. Azure: WasbRemoteCallHelper should use String equals for
(liuml07: rev 27a44b60c1a55cabbf1873bca62db4e321c901ca)
* (edit)
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/WasbRemoteCallHelper.java
> Azure: WasbRemoteCallHelper should use String equals for comparison.
> --------------------------------------------------------------------
>
> Key: HADOOP-14272
> URL: https://issues.apache.org/jira/browse/HADOOP-14272
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs/azure
> Affects Versions: 2.9.0
> Reporter: Santhosh G Nayak
> Assignee: Santhosh G Nayak
> Fix For: 2.9.0, 3.0.0-alpha3
>
> Attachments: HADOOP-14272.1.patch
>
>
> {{org.apache.hadoop.fs.azure.WasbRemoteCallHelper}} method is using the
> reference comparison to compare 2 strings, which is incorrect.
> {code}
> if (contentTypeHeader == null || contentTypeHeader.getValue() !=
> APPLICATION_JSON)}}
> {code}
> The fix is to use {{!APPLICATION_JSON.equals(contentTypeHeader.getValue())}}
> instead.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]