Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-14272

Azure: WasbRemoteCallHelper should use String equals for comparison.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9.0
    • Fix Version/s: 2.9.0, 3.0.0-alpha4
    • Component/s: fs/azure
    • Labels:
      None

      Description

      org.apache.hadoop.fs.azure.WasbRemoteCallHelper method is using the reference comparison to compare 2 strings, which is incorrect.

      if (contentTypeHeader == null || contentTypeHeader.getValue() != APPLICATION_JSON)}}
      

      The fix is to use !APPLICATION_JSON.equals(contentTypeHeader.getValue()) instead.

        Attachments

        1. HADOOP-14272.1.patch
          1 kB
          Santhosh G Nayak

          Activity

            People

            • Assignee:
              snayak Santhosh G Nayak
              Reporter:
              snayak Santhosh G Nayak
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: