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

Azure: WasbRemoteCallHelper should use String equals for comparison.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.9.0
    • 2.9.0, 3.0.0-alpha4
    • fs/azure
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: