Closed reta closed 3 weeks ago
Come up in https://github.com/opensearch-project/security/pull/4432#issuecomment-2160045889 , thanks to @nibix
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 65.44%. Comparing base (
0aed8f9
) to head (1fd98c6
). Report is 4 commits behind head on main.
What do you think about moving the delegating handler into core so this is avoided in future iterations?
What do you think about moving the delegating handler into core so this is avoided in future iterations?
@peternied core has nothing to do with this change: in core the change is non-breaking and adds default method to RestHandler
. The security plugin uses own DelegatingRestHandler
and reflection APIs to check all RestHandler
methods are "intercepted", the alternative here would be to use generated proxy (instead of hardcoded DelegatingRestHandler
) in the security
plugin.
Description
Fix DelegatingRestHandlerTests
Issues Resolved
Caused by https://github.com/opensearch-project/OpenSearch/pull/13772
Is this a backport? If so, please add backport PR # and/or commits #
Testing
N/A
Check List
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.