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

peng.jianhua updated RANGER-1802:
---------------------------------
    Attachment: 0001-RANGER-1802-Here-is-a-error-in-getStatusResponse-whe.patch

> 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)

Reply via email to