Kibana Dev Console: GET <index>/_doc/<id> request with payload create/updates document #77276
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Console
Dev Tools Console Feature
Feature:Dev Tools
Team:Kibana Management
Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more
Kibana version:
6.5.4
Elasticsearch version:
6.5.4
Server OS version:
linux/amd64 (running on docker)
Browser version:
Mozilla 80.0
Browser OS version:
Mac osCatalina 10.15.06
Original install method (e.g. download page, yum, from source, etc.):
I used a docker-compose file to run a 6.5.4 elasticsearch (single-node) and kibana (same version). Provided below in steps to reproduce.
Describe the bug:
While using _explain on a search and document to explore how it matched, I arrived at a point where I wanted to GET the document in question and look at it. Here's an example search I ran in the dev console:
Since I wanted to look at doc 0, I simply removed
_explain
from the end of the request in Kibana, but I left the payload.The response surprised me:
Although I did a GET request, it seems it ended up behaving like a PUT request.
I tried to reproduce this against ES via it's GET API but it would not update the doc.
Steps to reproduce:
run
docker-compose up --deatch
once up, in your browser, go to
http://localhost:5601/app/kibana#/dev_tools/console?_g=()
Run these in kibana dev console and you'll create a document with a GET
Expected behavior:
A response that indicates doc is not found:
Screenshots (if relevant):
n/a ; I can provide if helpful
Errors in browser console (if relevant):
n/a
Provide logs and/or server output (if relevant):
n/a
Any additional context:
n/a
I tried looking to see if this was documented/known behavior but couldn't find anything. Thank you for reading and considering.
The text was updated successfully, but these errors were encountered: