[ 
https://issues.apache.org/jira/browse/CB-12217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15731848#comment-15731848
 ] 

Massimiliano Perantoni commented on CB-12217:
---------------------------------------------

Sorry for the delay...
Actually if I rememver well I tried all ways already,
trustAll=true/false
chunckedMode=true/false
I even tried passing some form params:
even if not needed, as it is a different part of the upload I was hoping to 
trigger some particular condition...
I even tried adding a header "Connection: close"
No hope...
Btw, I tried with the clone of the repo as of uyour command without success... 
Do I miss something?
git clone -b CB-10974 https://github.com/daserge/cordova-plugin-file-transfer
Cloning into 'cordova-plugin-file-transfer'...
fatal: Remote branch CB-10974 not found in upstream origin

Waiting for help to help.

> 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: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to