elastic/kibana

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

Chiusa

#193.241 aperta il 18 set 2024

 (5 commenti) (0 reazioni) (1 assegnatario)TypeScript (8021 fork)batch import
Feature:ConsoleTeam:Kibana Managementbuggood first issue

Metriche repository

Star
 (19.065 stelle)
Metriche merge PR
 (Merge medio 1g 16h) (999 PR mergiate in 30 g)

Descrizione

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.

Guida contributor