Comments (9)
@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.
from azure-kusto-java.
Hi,
This is a known issue that started with the introduction of TLS 1.3.
Please open a support ticket with the above description.
Ops team can temporarily disable TLS 1.3.
from azure-kusto-java.
Ops team can temporarily disable 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?
from azure-kusto-java.
I'm using SDK Version: 4.0.4 and I'm hit by the same problem.
From time to time I get this exception and if I retry sometimes it works.
Error in post request:Incorrect inner plaintext: no content type
com.microsoft.azure.kusto.data.exceptions.DataClientException: Error in post request:Incorrect inner plaintext: no content type
at com.microsoft.azure.kusto.data.Utils.post(Utils.java:100)
at com.microsoft.azure.kusto.data.ClientImpl.executeToJsonResult(ClientImpl.java:156)
at com.microsoft.azure.kusto.data.ClientImpl.execute(ClientImpl.java:105)
....
Caused by: javax.net.ssl.SSLException: Incorrect inner plaintext: no content type
at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:133)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:378)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:321)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:316)
at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:134)
at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1513)
at java.base/sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1484)
at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:1069)
at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137)
at org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:153)
at org.apache.http.impl.io.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:280)
at org.apache.http.impl.io.ChunkedInputStream.getChunkSize(ChunkedInputStream.java:261)
at org.apache.http.impl.io.ChunkedInputStream.nextChunk(ChunkedInputStream.java:222)
at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:183)
at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:135)
at java.base/java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:242)
at java.base/java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
at java.base/java.util.zip.GZIPInputStream.read(GZIPInputStream.java:117)
at org.apache.http.client.entity.LazyDecompressingInputStream.read(LazyDecompressingInputStream.java:70)
at java.base/sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:270)
at java.base/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:313)
at java.base/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:188)
at java.base/java.io.InputStreamReader.read(InputStreamReader.java:177)
at java.base/java.io.Reader.read(Reader.java:250)
at org.apache.http.util.EntityUtils.toString(EntityUtils.java:227)
at org.apache.http.util.EntityUtils.toString(EntityUtils.java:308)
at com.microsoft.azure.kusto.data.Utils.post(Utils.java:87)
... 20 common frames omitted
Caused by: javax.crypto.BadPaddingException: Incorrect inner plaintext: no content type
at java.base/sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.decrypt(SSLCipher.java:1954)
at java.base/sun.security.ssl.SSLSocketInputRecord.decodeInputRecord(SSLSocketInputRecord.java:264)
at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:181)
at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:111)
... 42 common frames omitted
Temporarily disabling TLS 1.3 is the only solution?
Would upgrading to the latest SDK (5.0.5) fix the issue?
from azure-kusto-java.
I upgraded kusto to 5.0.5 and the exception slightly changed:
com.microsoft.azure.kusto.data.exceptions.DataServiceException: IOException in post request:Incorrect inner plaintext: no content type
at com.microsoft.azure.kusto.data.http.HttpPostUtils.post(HttpPostUtils.java:77)
at com.microsoft.azure.kusto.data.ClientImpl.lambda$executeToJsonResult$1(ClientImpl.java:224)
at com.microsoft.azure.kusto.data.instrumentation.MonitoredActivity.invoke(MonitoredActivity.java:33)
at com.microsoft.azure.kusto.data.instrumentation.MonitoredActivity.invoke(MonitoredActivity.java:26)
at com.microsoft.azure.kusto.data.ClientImpl.executeToJsonResult(ClientImpl.java:223)
at com.microsoft.azure.kusto.data.ClientImpl.executeImpl(ClientImpl.java:173)
at com.microsoft.azure.kusto.data.ClientImpl.lambda$execute$0(ClientImpl.java:122)
at com.microsoft.azure.kusto.data.instrumentation.MonitoredActivity.invoke(MonitoredActivity.java:33)
at com.microsoft.azure.kusto.data.ClientImpl.execute(ClientImpl.java:121)
at com.microsoft.azure.kusto.data.ClientImpl.execute(ClientImpl.java:116)
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?
from azure-kusto-java.
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.
from azure-kusto-java.
I was able to fix the problem on the client side. I run my application with -Djdk.tls.client.protocols=TLSv1.2
from azure-kusto-java.
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.
from azure-kusto-java.
Since we're getting rid of the Apache entity references in the next version, I think that should resolve this bug.
from azure-kusto-java.
Related Issues (20)
- How to get JSON/POJO from the KustoResultSetTable HOT 2
- Format classes for Parameterized queries does not exist in release binaries HOT 1
- The current version of the jackson-databind dependency has a security vulnerability HOT 2
- KustoResultSetTable getTimestamp should respect ISO format
- CloudInfo.retrieveCloudInfoForCluster should respect user specified httpClient HOT 2
- Asynchronous HTTP Client HOT 24
- Not able to access ADX cluster deployed in a VNet HOT 2
- Imcompatible libraries HOT 1
- All floating point numbers are now being returned as BigDecimals HOT 1
- AKJ >=4.0.0 Breaks QueuedIngestClient Stream Ingestion HOT 5
- This repo is missing important files
- Feature Request: Make AbstractSourceInfo "public" HOT 1
- Requests fail with Http Errorcode 400 if 'x-ms-user' contains umlauts HOT 1
- azure-core dependency conflicts HOT 2
- KustoResultSetTable getLong(String columnName) gives casting exception
- ClientRequestProperties transfer parameters by JDK 11 issue HOT 7
- Setting timeout via the code does not stop the query HOT 3
- Introduce KustoRequest Object HOT 1
- [BUG] Using Kusto QueuedIngestClient throwing ConcurrentModificationException HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-kusto-java.