You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Thomas O'Dell (JIRA)" <ji...@apache.org> on 2013/02/13 05:01:12 UTC

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

Thomas O'Dell created CB-2424:
---------------------------------

             Summary: 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
    Affects Versions: 2.4.0
         Environment: Android client trying to upload files to Amazon S3.
            Reporter: Thomas O'Dell
            Assignee: Joe Bowser
            Priority: Minor


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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira