ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru jia <821681...@163.com>
Subject Review Request 72641: RANGER-2877: ElasticSearch-Plugin throws NullPointException when the type of request is 'PutMappingRequest'
Date Fri, 03 Jul 2020 08:38:37 GMT

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

Review request for ranger.


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


Repository: ranger


Description
-------

request: curl -XPUT --tlsv1.2 --negotiate -k -u : 'https://xxxxx:xxx/graphbase0624_age_index1/_mapping/age_index1?include_type_name=true&pretty'
-H 'Content-Type:application/json' -d '{"mapping":{"properties":
{"age":"text"}}}'  

then ES will print NullPointException in it's log file, and the request will fail


Diffs
-----

  ranger-elasticsearch-plugin-shim/src/main/java/org/apache/ranger/authorization/elasticsearch/plugin/utils/RequestUtils.java
6786c14 


Diff: https://reviews.apache.org/r/72641/diff/1/


Testing
-------

tested in production environment, the NullPointException has disappeared and can get correct
index


Thanks,

ru jia


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message