You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Santhosh G Nayak (JIRA)" <ji...@apache.org> on 2017/04/04 09:52:41 UTC
[jira] [Created] (HADOOP-14272) Azure: WasbRemoteCallHelper should
use String equals for comparison.
Santhosh G Nayak created HADOOP-14272:
-----------------------------------------
Summary: 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.8.0
Reporter: Santhosh G Nayak
Assignee: Santhosh G Nayak
{{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: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org