Github user stanlyxiang commented on a diff in the pull request:

    https://github.com/apache/incubator-hawq/pull/1081#discussion_r95751617
  
    --- Diff: src/backend/libpq/rangerrest.c ---
    @@ -463,7 +464,12 @@ int check_privilege_from_ranger(List *request_list, 
List *result_list)
        json_object_put(jrequest);
     
        /* parse the JSON-format result */
    -   RangerACLResult ret = 
parse_ranger_response(curl_context_ranger.response.buffer);
    +   int ret = parse_ranger_response(curl_context_ranger.response.buffer, 
result_list);
    +   if (ret < 0)
    +   {
    +           elog(WARNING, "parse ranger response failed, response[%s]", 
    --- End diff --
    
    The response content is a json format. like 
{""requestId"":1,""privileges"":[""usage""],""allowed"":true}]},  if we add 
"[]" outside it,  square brackets can be a part of json content. Do you think 
so  ? 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to