Kibana: [Discover] Context fails when document_id contains a slash

Created on 15 Sep 2020  路  4Comments  路  Source: elastic/kibana

I bump into this issue in Kibana 7.8.0. I notice the document _id is the culprit.

  • If the _id contains only alphanumerical characters, it will give me correct context and showing the surrounding url.
  • if the _id contains the special character + or =, it works fine too.
  • If the _id contains a slash /, it first converts the _id into html ASCII characters (with %2F) but then resolve into wrong url which subsequently causing "Failed to load anchor document" like this:

To check a surrounding document with id= v/xA69ZXhXRk21sWH56BNnwibvs=

It gives the url like:

https://my_kibana_url/app/kibana#/discover/context/my_index_pattern-*/v%2FxA69ZXhXRk21sWH56BNnwibvs%3D?

Screen Shot 2020-08-24 at 11 20 47 am

Note the context changed into #xA69ZXhXRk21sWH56BNnwibvs= with missing v/

but it then resolves into:

https://my_kibana_url/app/kibana#/discover/context/my_index_pattern-*/xA69ZXhXRk21sWH56BNnwibvs=?&type=v

Note the _id change and &type=v at the end of url.

  • probably worth to check other special characters.

TL;DR, _id containing foo/bar gives url with context bar, with &type=foo appended in the url.

_Originally posted by @Leaf-Lin in https://github.com/elastic/kibana/issues/50482#issuecomment-678859058_

Discover bug

All 4 comments

@kertal , which Kibana release has this fix?

@pradeepnnv 7.10, our next release

We ae using 7.8 elastic search. kibana 7.10.0 is not compatible with 7.8 elastic search.
is there any plan to fix this issue in a kibana release which is compatible with 7.8?

There are no plans to fix this below 7.10.0, sorry

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ginja picture Ginja  路  3Comments

timmolter picture timmolter  路  3Comments

socialmineruser1 picture socialmineruser1  路  3Comments

snide picture snide  路  3Comments

MaartenUreel picture MaartenUreel  路  3Comments