-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62520/
-----------------------------------------------------------

(Updated 九月 27, 2017, 1:59 a.m.)


Review request for ranger, Alok Lal, Ankita Sinha, Don Bosco Durai, Colm O 
hEigeartaigh, Gautam Borad, Madhan Neethiraj, Ramesh Mani, Selvamohan 
Neethiraj, Velmurugan Periasamy, and Qiang Zhang.


Bugs: RANGER-1802
    https://issues.apache.org/jira/browse/RANGER-1802


Repository: ranger


Description
-------

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}


Diffs (updated)
-----

  
plugin-atlas/src/main/java/org/apache/ranger/services/atlas/client/AtlasClient.java
 c10da79c 


Diff: https://reviews.apache.org/r/62520/diff/5/

Changes: https://reviews.apache.org/r/62520/diff/4-5/


Testing
-------


Thanks,

pengjianhua

Reply via email to