You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Bas Bosman (JIRA)" <ji...@apache.org> on 2014/01/30 16:26:14 UTC

[jira] [Updated] (CB-2424) FileTransfer returns misleading "File Not Found" when no body in HTML return

     [ https://issues.apache.org/jira/browse/CB-2424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bas Bosman updated CB-2424:
---------------------------

    Component/s: Plugin File Transfer

> FileTransfer returns misleading "File Not Found" when no body in HTML return
> ----------------------------------------------------------------------------
>
>                 Key: CB-2424
>                 URL: https://issues.apache.org/jira/browse/CB-2424
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin File Transfer
>    Affects Versions: 2.4.0
>         Environment: Android client trying to upload files to Amazon S3.
>            Reporter: Thomas O'Dell
>            Assignee: Andrew Grieve
>            Priority: Minor
>              Labels: features
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> FileTransfer will return "File Not Found" error if the remote server returns only an HTML Response Code. This is very misleading, as it leads the user to believe the file is missing on the local file system.
> The problem is FileTransfer attempts to open the server connection for read, which raises the exception. FileTransfer should recognise that it is possible and legitimate for the remote open to fail, and simply pass the HTML response code back to the user as the error.
> Note: this has not been tested on other OS's. Try sending unauthorised files to Amazon S3 and you'll get the situation.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)