cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (CB-5631) progress returns excatly twice as much loaded bytes on android
Date Tue, 11 Mar 2014 06:05:49 GMT


ASF subversion and git services commented on CB-5631:

Commit 05786ec2ecf24a9244d43a88dce4c645eb0059b4 in cordova-plugin-file-transfer's branch refs/heads/master
from [~naika]
[;h=05786ec ]

Upleveled from android port with following commits:
3c1ff16 Andrew Grieve - CB-5762 android: Fix lengthComputable set wrong for gzip downloads
8374b3d Colin Mahoney - CB-5631 Removed[] buffer)
6f91ac3 Bas Bosman - CB-4907 Close stream when we're finished with it
651460f Christoph Neumann - CB-6000 Nginx rejects Content-Type without a space before "boundary".
35f80e4 Ian Clelland - CB-6050: Use instance method on actual file plugin object to get FileEntry
to return on download

> progress returns excatly twice as much loaded bytes on android
> ------------------------------------------------------------------------------------
>                 Key: CB-5631
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin File Transfer
>    Affects Versions: 3.2.0
>            Reporter: Malte Legenhausen
>            Assignee: Andrew Grieve
> When I download a file under android and calculate the progress of the download the onprogress
event.loaded variable is set to twice as much bytes as there where total available.
> I fixed the bug for me by simply dividing the result of getTotalRawBytesRead by 2.
> This bug occurs since cordova 3.0.0 only on Android. Tests on iOS return the right result.
I downloaded a video file from an apache http server.

This message was sent by Atlassian JIRA

View raw message