elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.71k stars 8.13k forks source link

[DataViews] "View conflicts" link errors out when data view pattern contains a colon #192148

Closed consulthys closed 5 days ago

consulthys commented 1 week ago

Kibana version: 8.14.2

Elasticsearch version: 8.14.2

Server OS version: ESS

Browser version: Chrome Version 127.0.6533.122 (official build) (x86_64)

Browser OS version: MacOS 11.2.3

Describe the bug:

When looking at a data view that has conflicts, clicking on the "View conflicts" link errors out. It seems this only happens if the data view doesn't have a name and the index pattern contains a colon, i.e. logging-*:logs-* which gets URL-encoded as logging-*%3Alogs-*.

Steps to reproduce:

  1. Go to the production overview-cloud instance
  2. Navigate to Stack Management > Data views
  3. Pick the logging-*:logs-* data view
  4. Click on the "View conflicts" link
  5. Page reloads with an error (see screenshot below)

Expected behavior:

I expect the link to work and show mapping conflicts.

If I right-click/copy the link (i.e. https://overview.elastic-cloud.com/app/management/kibana/dataViews/dataView/logging-*%3Alogs-*#?_a=h@a3aea0f) and change %3A by a :, then it works as expected.

So this broken link https://overview.elastic-cloud.com/app/management/kibana/dataViews/dataView/logging-*%3Alogs-*#?_a=h@a3aea0f should be https://overview.elastic-cloud.com/app/management/kibana/dataViews/dataView/logging-*:logs-*#?_a=h@a3aea0f

Screenshots (if relevant): Click on View Conflicts Image

An error is triggered Image

elasticmachine commented 1 week ago

Pinging @elastic/kibana-management (Team:Kibana Management)

elasticmachine commented 6 days ago

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

jughosta commented 6 days ago

Thanks for reporting, @consulthys !