Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2.x] Fix error message when system index is blocked #2537

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport ef6ffb5 from #2525

There was a bug in the error message when interacting with a system
index causing it to always return the security index instead of the
index(es) that were blocked.

Also includes unit test cases to verify the SecurityIndexAccessEvaluator

#2483

Signed-off-by: Peter Nied <[email protected]>
(cherry picked from commit ef6ffb5)
@codecov-commenter
Copy link

codecov-commenter commented Mar 10, 2023

Codecov Report

Merging #2537 (a2f5503) into 2.x (5a0e508) will increase coverage by 0.02%.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@             Coverage Diff              @@
##                2.x    #2537      +/-   ##
============================================
+ Coverage     61.24%   61.27%   +0.02%     
- Complexity     3310     3312       +2     
============================================
  Files           258      258              
  Lines         18267    18272       +5     
  Branches       3250     3251       +1     
============================================
+ Hits          11188    11196       +8     
- Misses         5499     5500       +1     
+ Partials       1580     1576       -4     
Impacted Files Coverage Δ
...urity/privileges/SecurityIndexAccessEvaluator.java 75.36% <100.00%> (+8.17%) ⬆️

... and 5 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@peternied peternied merged commit 4cf9b71 into 2.x Mar 10, 2023
@peternied peternied deleted the backport/backport-2525-to-2.x branch March 10, 2023 19:56
Rishikesh1159 added a commit to Rishikesh1159/security that referenced this pull request Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants