Qiang Zhang created RANGER-1802:
-----------------------------------
Summary: Here is a error in getStatusResponse() when post data
exception for AtlasClient class
Key: RANGER-1802
URL: https://issues.apache.org/jira/browse/RANGER-1802
Project: Ranger
Issue Type: Bug
Components: plugins
Affects Versions: 1.0.0, master
Reporter: Qiang Zhang
Assignee: Qiang Zhang
Priority: Minor
Here is a error in getStatusResponse() when post data exception for AtlasClient
class
{code}
try {
statusResponse =
webResource.type("application/x-www-form-urlencoded").post(ClientResponse.class,
formData);
} catch (Exception e) {
String msgDesc = "Unable to get a valid
statusResponse for " + "expected mime type : ["
+ EXPECTED_MIME_TYPE + "] URL :
" + statusUrl + " - got null response.";
LOG.error(msgDesc);
}
{code}
should be
{code}
try {
statusResponse =
webResource.type("application/x-www-form-urlencoded").post(ClientResponse.class,
formData);
} catch (Exception e) {
String msgDesc = "Unable to get a valid
statusResponse for " + "expected mime type :
[application/x-www-form-urlencoded] URL : " + statusUrl + " - got null
response.";
LOG.error(msgDesc);
}
{code]
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)