cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Chase (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-8304) File transfer plugin - upload to invalid server can cause app to crash on iOS
Date Tue, 13 Jan 2015 21:25:34 GMT

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

Jason Chase updated CB-8304:
----------------------------
    Description: 
This was discovered when investigating that the file transfer plugin automatic tests would
consistently cause mobile spec to crash on iOS.  The specific offending test is "filetransfer.spec.25
should handle unknown host".

Investigation reveals that when an invalid host is specified as the upload target, on iOS,
the upload will fail in the background.  Part of the plugin's native iOS error handling is
to delete the "target" file.  When the upload target does not include a path (e.g. the test
uses "http://foobar.apache.org"), an error will occur trying to delete a nil path.


  was:
One of the file transfer plugin automatic tests will consistently cause mobile spec to crash
on iOS.  Specifically, the test "filetransfer.spec.25 should handle unknown host".



> File transfer plugin - upload to invalid server can cause app to crash on iOS
> -----------------------------------------------------------------------------
>
>                 Key: CB-8304
>                 URL: https://issues.apache.org/jira/browse/CB-8304
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS, mobile-spec, Plugin File Transfer
>    Affects Versions: Master
>            Reporter: Jason Chase
>            Assignee: Jason Chase
>              Labels: file-transfer, ios, plugin
>
> This was discovered when investigating that the file transfer plugin automatic tests
would consistently cause mobile spec to crash on iOS.  The specific offending test is "filetransfer.spec.25
should handle unknown host".
> Investigation reveals that when an invalid host is specified as the upload target, on
iOS, the upload will fail in the background.  Part of the plugin's native iOS error handling
is to delete the "target" file.  When the upload target does not include a path (e.g. the
test uses "http://foobar.apache.org"), an error will occur trying to delete a nil path.



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