Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.9.0
-
None
-
Reviewed
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.