elastic/kibana

[Console] Line break is sometimes opaquely inserted when submitting request

Fechada

#193.241 aberto em 18 de set. de 2024

 (5 comentários) (0 reação) (1 responsável)TypeScript (8.021 forks)batch import
Feature:ConsoleTeam:Kibana Managementbuggood first issue

Métricas do repositório

Stars
 (19.065 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

In some cases, when submitting a request with a certain pattern, console inserts a line break under the water which breaks the request, without a hint to the user as to why that has happened. Here's a snippet to reproduce:

PUT _ingest/pipeline/entities-v1-latest-builtin_data_streams
{
  "processors": [
    {
      "set": {
        "field": "entity.displayName",
        "value": "{{remote}}{{data_stream.type}}-{{data_stream.dataset}}-{{data_stream.namespace}}"
      }
    }
  ]
}

The issue is with {{remote}}{{data_stream.type}}. If that is changed to {{remote}}-{{data_stream.type}}, the request works again.

Guia do colaborador