mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-18 02:44:49 +00:00
Hijack the DELETE .watches index delete endpoint.
This change disables the DELETE .watches index endpoint. Fixes: elastic/elasticsearch#439 Original commit: elastic/x-pack-elasticsearch@2e66cd55fa
This commit is contained in:
parent
8bc238e10a
commit
4c939a7c3d
@ -26,6 +26,11 @@
|
|||||||
type: "watch"
|
type: "watch"
|
||||||
id: "foo"
|
id: "foo"
|
||||||
|
|
||||||
|
- do:
|
||||||
|
catch: /not supported/
|
||||||
|
indices.delete:
|
||||||
|
index: ".watches"
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
catch: /not supported/
|
catch: /not supported/
|
||||||
update:
|
update:
|
||||||
|
@ -37,6 +37,7 @@ public class RestHijackOperationAction extends WatcherRestHandler {
|
|||||||
controller.registerHandler(RestRequest.Method.POST, WatchStore.INDEX + "/_bulk", unsupportedHandler);
|
controller.registerHandler(RestRequest.Method.POST, WatchStore.INDEX + "/_bulk", unsupportedHandler);
|
||||||
controller.registerHandler(RestRequest.Method.PUT, WatchStore.INDEX + "/watch/_bulk", unsupportedHandler);
|
controller.registerHandler(RestRequest.Method.PUT, WatchStore.INDEX + "/watch/_bulk", unsupportedHandler);
|
||||||
controller.registerHandler(RestRequest.Method.PUT, WatchStore.INDEX + "/_bulk", unsupportedHandler);
|
controller.registerHandler(RestRequest.Method.PUT, WatchStore.INDEX + "/_bulk", unsupportedHandler);
|
||||||
|
controller.registerHandler(RestRequest.Method.DELETE, WatchStore.INDEX, unsupportedHandler);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user