Massimiliano Perantoni created CB-12217:
-------------------------------------------
Summary: FileTransfer stops at line 509 over https
Key: CB-12217
URL: https://issues.apache.org/jira/browse/CB-12217
Project: Apache Cordova
Issue Type: Bug
Components: Plugin File Transfer
Affects Versions: 1.6.0
Environment: Android emulator
Reporter: Massimiliano Perantoni
it seems as if in my conditions the connection gets hung waiting to get an
answer that will never arrive.
I enabled the debug mode, this is what I get with
adb logcat FileTransfer:*
D/FileTransfer(10912): upload
file:///storage/sdcard/Android/data/com.mywonder.androidApp/cache/1480944997088.png
to https://anywebsite.ssl/postuploadEndpoint
D/FileTransfer(10912): fileKey: file
D/FileTransfer(10912): fileName: 1480944997088.png
D/FileTransfer(10912): mimeType: image/png
D/FileTransfer(10912): trustEveryone: true
D/FileTransfer(10912): chunkedMode: true
D/FileTransfer(10912): headers: {"Connection":"close"}
D/FileTransfer(10912): objectId: 1
D/FileTransfer(10912): httpMethod: POST
D/FileTransfer(10912): Content Length: 2169
D/FileTransfer(10912): Sent 2169 of 2169
>From the code, as few lines after it should print more things, it seems
>evident that system hangs exactly at the line
int responseCode = conn.getResponseCode();
and never gets out of there.
conn is declared as a HttpURLConnection.
For what I remember I have this problem in production systems only behind a AJP
Proxy + SSL made with Apache.
If I connect directly to my endpoint (JaxRS+Wildfly 8.2.1.Final) there's no
problem.
Didn't test with HTTP either, but i think it works, it seems more SSL related.
Any Idea?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]