-
Notifications
You must be signed in to change notification settings - Fork 43
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
SSL Exception From HTTP Apache Client Library #334
Comments
Hi, This is a known issue that started with the introduction of TLS 1.3. |
@yogilad Is temporarily disabling TLS 1.3 the final solution? Are there any plans to update the library so that it will be successfully working with TLS 1.3, i.e., is the known issue going to be fixed? |
I'm using SDK Version: 4.0.4 and I'm hit by the same problem.
Temporarily disabling TLS 1.3 is the only solution? Would upgrading to the latest SDK (5.0.5) fix the issue? |
I upgraded kusto to 5.0.5 and the exception slightly changed:
I don't see the SSLException anymore but I still get "Incorrect inner plaintext: no content". Is temporarily disabling TLS 1.3 the final solution? |
@mar1u50 It seems to be. We never heard anything else. Also be aware that disabling TLS 1.3 was everything but straightforward. It took the Azure support a quite long time. We didn’t have the impression it’s as simple as indicated by @yogilad. In particular, the whole process did not feel as if the support is familiar with such requests. For us, it involved some back and forth and discussions about the used JDK version as this was supposed to be the reason for the issue (it wasn’t), for example. Overall this wasn’t a good experience, and not getting any further comment or reply here is really disappointing. |
I was able to fix the problem on the client side. I run my application with |
@yogilad, is there a reason not to keep this issue open? I tested with Kusto 5.0.5, and the problem still exists. I don't think it is good to keep using TLS 1.2 long-term. |
Right now, downgrading to TLS v1.2 is the recommended mitigation. We will keep this issue open and update when a we'll have a permanent resolution. |
Since we're getting rid of the Apache entity references in the next version, I think that should resolve this bug. |
Just an update on this: The issue seems to have been fixed with the removal of Apache references. I tested a few large queries (over the query limits) in the latest version and no longer encountered the SSL exception that occurred previously. |
We cannot really say that for certain - its not easily reproduced ... did you reproduce the problem before (with old client) and see that now its gone? I myself cannot reproduce it anymore locally regardless of the SDK version |
You are right, I tested it with the Azure client with a query that used to fail with the old client. If I manage to reproduce it with the old client I'll give an update. |
@ohadbitt @georgebanasios I know it's hard to prove the actual absence of a bug, however, I can state what we did in the very beginning when the issue was observed: As described by @meilz381, we extracted the plain HTTP request that was sent by the Kusto SDK via the built-in Apache HTTP client. The request worked fine with all the clients we tested. We also tried the Apache HTTP client independently and ran into an issue directly. Thus, if the Apache HTTP client has now been replaced in the SDK, we could be quite confident to assume the bug is also gone now. |
Describe the bug
A clear and concise description of what the bug is.
There is an issue with the HTTP client inside the client library where the request fails every time when we try to retrieve certain elements from ADX (paged response from a stored query result) when it is done with the same parameters (the same pages fail).
To Reproduce
Steps to reproduce the behavior:
Create a big stored query result (~1GB) and retrieve the result paged. What seems to appear random, for certain requests the
EntityUtils.toString(entity)
method invocation in the file "com.microsoft.azure.kusto.data.Utils" throws an IOException, because of an SSL exception (see screenshot) about wrong padding, that comes from the HTTP Apache Client library that is used. In the end, it results in aDataClientException
. This request did/will never succeed even with retries.Expected behavior
With other HTTP clients (OkHttpClient, AsyncHttpClient), cURL and tools like Postman or Insomnia I'm able to do the same request and get the result, without any exception (see screenshot). So maybe a change to another HTTP client library could be a solution.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (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: