elastic/kibana

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

Closed

#193,241 opened on Sep 18, 2024

 (5 comments) (0 reactions) (1 assignee)TypeScript (8,021 forks)batch import
Feature:ConsoleTeam:Kibana Managementbuggood first issue

Repository metrics

Stars
 (19,065 stars)
PR merge metrics
 (Avg merge 1d 16h) (999 merged PRs in 30d)

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.

Contributor guide