cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-10974) Cordova file transfer Content-Length header problem
Date Wed, 23 Nov 2016 05:17:58 GMT


ASF GitHub Bot commented on CB-10974:

Github user raykin commented on the issue:
    same here. 
    E/FileTransfer(22411): {"code":1,"source":"file:\/\/\/data\/data\/com.deltux.kasa\/cache\/tmp_20161113_082947-1226504239.jpg","target":"https:\/\/\/assets-kasa-dev\/","body":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>MissingContentLength<\/Code><Message>You
must provide the Cont
    ent-Length HTTP header.<\/Message><RequestId>934F1CD36D065625<\/RequestId><HostId>ma9wYyhr3H0aplxC5KQCLQMopLQz9IzfXk8o7ooq0DWe9dZM8kbqeDNmOWyAGpMmP3W8DuMym
    E/FileTransfer(22411):  at
    E/FileTransfer(22411):  at
    E/FileTransfer(22411):  at
    E/FileTransfer(22411):  at org.apache.cordova.filetransfer.FileTransfer.getInputStream(
    E/FileTransfer(22411):  at org.apache.cordova.filetransfer.FileTransfer.access$500(
    E/FileTransfer(22411):  at org.apache.cordova.filetransfer.FileTransfer$
    E/FileTransfer(22411):  at java.util.concurrent.ThreadPoolExecutor.runWorker(
    E/FileTransfer(22411):  at java.util.concurrent.ThreadPoolExecutor$
    E/FileTransfer(22411):  at
    another weird stuff is  
    adb logcat FileTransfer:* *:S
    doesn't show debug log
    btw, the Content-Length works on ios.
    @craig-at-rsg do you find workaround on android? 

> Cordova file transfer Content-Length header problem
> ---------------------------------------------------
>                 Key: CB-10974
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File Transfer
>         Environment: iPad Mini 2 with iOS 9.3
>            Reporter: Roman Lapotchkin
>            Assignee: Sergey Shakhnazarov
>              Labels: iOS, triaged
> The Content-Length header always sending even options.chunkedMode is true. It expected
header Transfer-Encoding: chuncked. When i commented this code in src/ios/CDVFileTransfer.m
at line 232 it works:
> [req setValue:[[NSNumber numberWithLongLong:totalPayloadLength] stringValue] forHTTPHeaderField:@"Content-Length"];

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message