You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "peng.jianhua (JIRA)" <ji...@apache.org> on 2017/09/27 02:02:00 UTC

[jira] [Assigned] (RANGER-1802) Here is a error in getStatusResponse() when post data exception for AtlasClient class

     [ https://issues.apache.org/jira/browse/RANGER-1802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

peng.jianhua reassigned RANGER-1802:
------------------------------------

    Assignee: peng.jianhua  (was: Qiang Zhang)

> 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: peng.jianhua
>            Priority: Minor
>         Attachments: 0001-RANGER-1802-Here-is-a-error-in-getStatusResponse-whe.patch, 0001-RANGER-1802-Here-is-a-error-in-getStatusResponse-whe.patch
>
>
> 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)