-
Notifications
You must be signed in to change notification settings - Fork 894
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
[BUG] Can't view surrounding documents when there's a "+" in the id #5711
Comments
@abbyhu2000 can you check if this is being addressed already in 2.12 or still need to be fixed by 2.13. Check if regression issue prior to new Discover. If it's existing issue (prior to new Discover) then it might be worth considering if it should be backported and released. |
This could be an issue with encoding and maybe will have to do a patch to fix this. |
Follow up: Do we need better documentation on characters that need to be supported within OpenSearch and OpenSearch Dashboards. Can I insert 我是 |
just confirmed: this is a regression of release 2.11 discover. Legacy discover in 2.10 does not have this bug. Should we target to fix this? @kavilla @ananzh @ashwin-pc The following video is from 2.10 branch: Screen.Recording.2024-02-20.at.3.19.13.PM.mov |
Should fix this in 2.13 |
Hi @ashwin-pc I tried it with version 2.12 in Docker and the bug is still there. |
Same issue seems to happen when the id has a Replacing the |
When viewing surrounding documents of a document which id contains chars such as `@` or `+`, these chars are encoded, preventing OpenSearch from finding the requested document. Decode the id to transform back the URI encoded chars to the actual chars in the document id to find it and unbreak the feature. Fixes opensearch-project#5711 Signed-off-by: Romain Tartière <[email protected]>
Describe the bug
When I go to discover, find some documents using an index pattern and then try to view surrounding documents of one of them, I get an error that says "Unable to fetch anchor document". This only happens to when the _id of the document contains a plus sign. If I substitute %2B for + in the URL in the new window, it works.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A new window will open with surrounding documents
OpenSearch Version
2.11
Docker image 2.11.1
Dashboards Version
2.11
Docker image 2.11.1
Plugins
N/A
Screenshots
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: