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
TiDownloadManager throws javax.net.ssl.SSLHandshakeException when module is used #35
Comments
@FokkeZB This week I ran into the similar issue on a Native Android module. Please take a look at this thread on Stackoverflow: http://stackoverflow.com/a/29946540. Might this be related to this problem as well? |
Looks like an incompatibility with the Parse SDK. Let me try updating the SDK to see if it solves the issue |
Hey @FokkeZB have you ever been able to resolve this issue? I've most likely found the cause of it. Somehow it seems that when you enable this module, the Titanium application is using different HTTP logic from Android 4.4 and up. Starting with that version OKHttp became available. If the SSL server has disabled SSLv3 and TLS1.0, which it SHOULD(!), then the execution fails. The problem seems related to tidev/titanium-sdk#6807, where a fix was applied. But the TiDownloadManager seems to be something that does not use this logic and tries to do the SSL handshake on SSLv3 and TLS1.0 Security wise this is old incorrect behaviour! |
@FokkeZB As said, I've been able to drill down the issue to the use of OkHttp. I experience the same kind of problems which are gone by distributing the latest OkHttp library along with this module. Version 0.12.0 resolves this issue. |
With the following code:
The HTTPClient always works, but the image does not when the
eu.rebelcorp.parse
module is included (not even used) in the project:The text was updated successfully, but these errors were encountered: