opensearch-project / security

🔐 Secure your cluster with TLS, numerous authentication backends, data masking, audit logging as well as role-based access control on indices, documents, and fields
https://opensearch.org/docs/latest/security-plugin/index/
Apache License 2.0
181 stars 264 forks source link

[Backport 2.x] Fix NPE getting metaFields from mapperService on a close index request (#4497) #4510

Closed cwperks closed 3 days ago

cwperks commented 3 days ago

Signed-off-by: Craig Perkins cwperx@amazon.com (cherry picked from commit 34da6e86fbcdaf2b87a3dadf33e1c53e425b280e)

Backport #4497 to 2.x

codecov[bot] commented 3 days ago

Codecov Report

Attention: Patch coverage is 70.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 65.36%. Comparing base (f972f83) to head (4d8b97e).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/opensearch-project/security/pull/4510/graphs/tree.svg?width=650&height=150&src=pr&token=rBpySfQXMt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project)](https://app.codecov.io/gh/opensearch-project/security/pull/4510?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) ```diff @@ Coverage Diff @@ ## 2.x #4510 +/- ## ========================================== + Coverage 65.33% 65.36% +0.02% ========================================== Files 312 312 Lines 21878 21884 +6 Branches 3549 3551 +2 ========================================== + Hits 14294 14304 +10 + Misses 5811 5806 -5 - Partials 1773 1774 +1 ``` | [Files](https://app.codecov.io/gh/opensearch-project/security/pull/4510?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) | Coverage Δ | | |---|---|---| | [...figuration/SecurityFlsDlsIndexSearcherWrapper.java](https://app.codecov.io/gh/opensearch-project/security/pull/4510?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Forg%2Fopensearch%2Fsecurity%2Fconfiguration%2FSecurityFlsDlsIndexSearcherWrapper.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-c3JjL21haW4vamF2YS9vcmcvb3BlbnNlYXJjaC9zZWN1cml0eS9jb25maWd1cmF0aW9uL1NlY3VyaXR5RmxzRGxzSW5kZXhTZWFyY2hlcldyYXBwZXIuamF2YQ==) | `91.66% <70.00%> (-5.96%)` | :arrow_down: | ... and [5 files with indirect coverage changes](https://app.codecov.io/gh/opensearch-project/security/pull/4510/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project)