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

Pass set to SystemIndexRegistry.matchesSystemIndexPattern #4569

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

cwperks
Copy link
Member

@cwperks cwperks commented Jul 16, 2024

Description

This PR fixes a compilation error after merge of opensearch-project/OpenSearch#14750 in core which changes the method signature to SystemIndexRegistry.matchesSystemIndexPattern to accept a set to prevent having to convert between a set and array in SystemIndexAccessEvaluator.

  • Category (Enhancement, New feature, Bug fix, Test fix, Refactoring, Maintenance, Documentation)

Maintenance

Check List

  • New functionality includes testing
  • New functionality has been documented
  • New Roles/Permissions have a corresponding security dashboards plugin PR
  • API changes companion pull request created
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Craig Perkins <cwperx@amazon.com>
Copy link

codecov bot commented Jul 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.29%. Comparing base (cfb5525) to head (187f42c).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4569      +/-   ##
==========================================
- Coverage   65.30%   65.29%   -0.01%     
==========================================
  Files         317      317              
  Lines       22274    22274              
  Branches     3582     3582              
==========================================
- Hits        14546    14544       -2     
- Misses       5936     5939       +3     
+ Partials     1792     1791       -1     
Files Coverage Δ
...ecurity/privileges/SystemIndexAccessEvaluator.java 70.63% <100.00%> (ø)

... and 3 files with indirect coverage changes

@DarshitChanpura
Copy link
Member

@cwperks could you look into CI failures:

Seems to be failing still for some workflows with:

Error: 7-16T16:00:34,864][ERROR][o.o.s.f.SecurityFilter   ] [smoketestnode] Unexpected exception java.lang.NoSuchMethodError: 'java.util.Set org.opensearch.indices.SystemIndexRegistry.matchesSystemIndexPattern(java.util.Set)'

@cwperks
Copy link
Member Author

cwperks commented Jul 16, 2024

@DarshitChanpura This is blocked due to stale min distribution for 3.0.0. I will re-run the CI checks once fresh artifacts are available that include opensearch-project/OpenSearch#14750

@cwperks cwperks added the backport 2.x backport to 2.x branch label Jul 16, 2024
@cwperks cwperks merged commit 32bcf7b into opensearch-project:main Jul 16, 2024
38 of 42 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 16, 2024
Signed-off-by: Craig Perkins <cwperx@amazon.com>
(cherry picked from commit 32bcf7b)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants