[Discover] Context fails when document_id contains a slash #77443
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Discover
Discover Application
I bump into this issue in Kibana 7.8.0. I notice the document
_id
is the culprit._id
contains only alphanumerical characters, it will give me correctcontext
and showing the surrounding url._id
contains the special character+
or=
, it works fine too._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:
Note the context changed into #
xA69ZXhXRk21sWH56BNnwibvs=
with missingv/
but it then resolves into:
Note the
_id
change and&type=v
at the end of url.TL;DR,
_id
containingfoo/bar
gives url with contextbar
, with&type=foo
appended in the url.Originally posted by @Leaf-Lin in #50482 (comment)
The text was updated successfully, but these errors were encountered: