hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mingliang Liu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-14272) Azure: WasbRemoteCallHelper should use String equals for comparison.
Date Tue, 04 Apr 2017 18:05:41 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-14272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mingliang Liu updated HADOOP-14272:
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.0-alpha3
                   2.9.0
           Status: Resolved  (was: Patch Available)

Committed to {{trunk}} and {{branch-2}} branches. Thanks for your contribution [~snayak].

> 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: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message