cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-7006) [cordova-plugin-file-transfer] Empty file is created on file transfer if server response is 304.
Date Thu, 12 Nov 2015 07:22:11 GMT

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

ASF GitHub Bot commented on CB-7006:
------------------------------------

Github user daserge commented on the pull request:

    https://github.com/apache/cordova-plugin-file-transfer/pull/113#issuecomment-156022070
  
    Added a workaround for iOS using query parameters. 
    The similar iOS issue is described in [CB-8606 File-Transfer with Range-Header is cached
on iOS](https://issues.apache.org/jira/browse/CB-8606).


> [cordova-plugin-file-transfer] Empty file is created on file transfer if server response
is 304.
> ------------------------------------------------------------------------------------------------
>
>                 Key: CB-7006
>                 URL: https://issues.apache.org/jira/browse/CB-7006
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File Transfer
>         Environment: Android 4.3, cordova 3.4.1, plugin-file-transfer r0.4.4
>            Reporter: Romain Garrigues
>
> Hi,
> I want to use file transfer plugin with "If-Modified-Since" HTTP header.
> When receiving 304 status code from server (file not changed), It seems that file transfer
plugin overwrites the current file on device by... new empty one.
> As plugin does not verify HTTP response status code, and HTTP 304 response contains an
empty body content, maybe that's a point to check to avoid overwriting already present data
?



--
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