-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Console: Escaping results in differently stored documents #13528
Comments
I think that this is a DevTools issue. |
Pinging @elastic/es-ui |
@spinscale AFAIK this is the intended behaviour of using """ strings. They remove a level of escape sequences which enables, for instance, rendering text with actual new lines instead of Closing for now. |
@jloleysens I'm not quite following -- can you explain why using triple quotes will store |
Given the following two strings: Without triple quotes:
With triple quotes:
When converted to JSON, they will both be: |
Based on the issue @spinscale reported, it seems like the problem we need to solve is the confusion he experienced, as opposed to something misbehaving on a technical level. Maybe the solution could lie on the technical level (e.g. by changing the way we encode stuff in triple quotes), or maybe it's simply documenting the expected behavior as he suggests. Either way, I think this is still a valid problem we can solve. |
Pinging @elastic/kibana-management (Team:Kibana Management) |
Escaping using the three ticks syntax in combination with backslashes can result in differently stored documents (maybe this is documented and I didnt find it, but I think it's worth mentioning somewhere). Take this example
As you can see, the response looks fine. However returning the documents via curl reveal, that the source is actually different
As you can see the number of backslashes is different, two versus four.
The text was updated successfully, but these errors were encountered: