Describe the bug:
If the POST agent_download_sources query is executed twice setting with the same body (a new default source with is_default key). Second run of the command fails with a 409 error (expected), but updates the is_default key to be false.
Steps to reproduce:
Create a new source using agent_download_sources API:
Kibana version: 8.13.0 and 8.14.0-SNAPSHOT
Describe the bug: If the POST agent_download_sources query is executed twice setting with the same body (a new default source with
is_default
key). Second run of the command fails with a 409 error (expected), but updates theis_default
key to be false.Steps to reproduce:
GET kbn:/api/fleet/agent_download_sources
is_default
key, return 409 error (expected):GET kbn:/api/fleet/agent_download_sources
. New source keeps being the default one.is_default
value to false:Expected behavior:
is_default
as true in the newtest_id
source added.