Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Discover] Context fails when document_id contains a slash #77443

Closed
kertal opened this issue Sep 15, 2020 · 4 comments · Fixed by #77435
Closed

[Discover] Context fails when document_id contains a slash #77443

kertal opened this issue Sep 15, 2020 · 4 comments · Fixed by #77435
Labels
bug Fixes for quality problems that affect the customer experience Feature:Discover Discover Application

Comments

@kertal
Copy link
Member

kertal commented Sep 15, 2020

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?<extra_filter>

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=?<extra_filter>&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 #50482 (comment)

@kertal kertal added Feature:Discover Discover Application bug Fixes for quality problems that affect the customer experience labels Sep 15, 2020
@kertal kertal changed the title [Discover] Context fails when _id contains a slash [Discover] Context fails when document_id contains a slash Sep 15, 2020
@pradeepnnv
Copy link

@kertal , which Kibana release has this fix?

@kertal
Copy link
Member Author

kertal commented Oct 7, 2020

@pradeepnnv 7.10, our next release

@prabaharan0312126
Copy link

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?

@kertal
Copy link
Member Author

kertal commented Nov 12, 2020

There are no plans to fix this below 7.10.0, sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Discover Discover Application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants