You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Vishal Mishra (JIRA)" <ji...@apache.org> on 2017/11/22 00:56:00 UTC

[jira] [Closed] (CB-12217) FileTransfer stops at line 509 over https

     [ https://issues.apache.org/jira/browse/CB-12217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vishal Mishra closed CB-12217.
------------------------------
    Resolution: Fixed

> 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: cordova-plugin-file-transfer (DEPRECATED)
>    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.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org