Open dblock opened 10 months ago
Thanks for filing
The underlying issue is that after permissions checks occur, chain.proceed(...)
[1] is called to execute the task, this code is inside a try
block to ensure any exceptions in privilege evaluation are not leaked to callers. Exceptions generated from the task itself should not be swallowed captured by this catch block, but passed up the exception stack.
[Triage] Hi @dblock, thanks for filing this issue. We can move forward when either the exception type is fixed (short term) or a more extensive correction is done following Peter's comment.
What is the bug?
I installed an incompatible plugin into OpenSearch that has a REST handler. That handler raises a
NoMethodError
in this particular instance of OpenSearch, causing the following API response.The root cause is a
NoSuchMethodError
in the plugin.But this causes
Reproduce
./gradlew :plugins:api:assemble
.curl -u admin:admin https://localhost:9200/_plugins/api
What is the expected behavior?
An internal server error, not a
security_exception
.Do you have any additional context?
Installing a plugin built from https://github.com/dblock/OpenSearch/tree/2.11.1-api-plugin.