-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
REST client - Response.getWarnings() does not decode escaped quotes #38189
Comments
Pinging @elastic/es-core-features |
I made a start on the required decoder function but have yet to figure out where to put it. Either way a gist with the necessary function and test code is here: https://gist.github.com/markharwood/aa5215d0b7128c23d93904774a51e937 |
Updated 6.x test expectations
Updated 6.x test expectations
We discussed this briefly today in our team sync, and believe that best path forward here is to simply ensure we don't quotes inside quotes. Ideally use
|
This has been open for quite a while, and we haven't made much progress on this due to focus in other areas. For now I'm going to close this as something we aren't planning on implementing. We can re-open it later if needed. |
I ran into a failing test scenario where the Java string logged server-side with the
DeprecationLogger.deprecatedAndMaybeLog
failed to match the same string when materialized client-side usingResponse. getWarnings()
.The string in question had quotes eg:
which is encoded to HTTP headers by the logging framework with slashes around the quotes eg
Don't use \"type\" please
When deserialized on the client the slashes are not decoded meaning our test fails because
Don't use \"type\" please
!=Don't use "type" please
The text was updated successfully, but these errors were encountered: