cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Shakhnazarov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-12217) FileTransfer stops at line 509 over https
Date Thu, 08 Dec 2016 11:04:59 GMT

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

Sergey Shakhnazarov commented on CB-12217:
------------------------------------------

Hi [~massimiliano@perantoni.net], sorry, the branch is no more as it's already merged to master.
Please try with {{chunkedMode=false}} and {{cordova plugin add https://github.com/apache/cordova-plugin-file-transfer}}.

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


Mime
View raw message