HADOOP-12088. KMSClientProvider uses equalsIgnoreCase("application/json"). (Brahma Reddy Battula via stevel)
This commit is contained in:
parent
9141e1aa16
commit
05fa3368f1
|
@ -975,6 +975,9 @@ Release 2.8.0 - UNRELEASED
|
||||||
HADOOP-12209 Comparable type should be in FileStatus.
|
HADOOP-12209 Comparable type should be in FileStatus.
|
||||||
(Yong Zhang via stevel)
|
(Yong Zhang via stevel)
|
||||||
|
|
||||||
|
HADOOP-12088. KMSClientProvider uses equalsIgnoreCase("application/json").
|
||||||
|
(Brahma Reddy Battula via stevel)
|
||||||
|
|
||||||
Release 2.7.2 - UNRELEASED
|
Release 2.7.2 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -544,7 +544,9 @@ public class KMSClientProvider extends KeyProvider implements CryptoExtension,
|
||||||
// AuthenticatedURL properly to set authToken post initialization)
|
// AuthenticatedURL properly to set authToken post initialization)
|
||||||
}
|
}
|
||||||
HttpExceptionUtils.validateResponse(conn, expectedResponse);
|
HttpExceptionUtils.validateResponse(conn, expectedResponse);
|
||||||
if (APPLICATION_JSON_MIME.equalsIgnoreCase(conn.getContentType())
|
if (conn.getContentType() != null
|
||||||
|
&& conn.getContentType().trim().toLowerCase()
|
||||||
|
.startsWith(APPLICATION_JSON_MIME)
|
||||||
&& klass != null) {
|
&& klass != null) {
|
||||||
ObjectMapper mapper = new ObjectMapper();
|
ObjectMapper mapper = new ObjectMapper();
|
||||||
InputStream is = null;
|
InputStream is = null;
|
||||||
|
|
Loading…
Reference in New Issue