[
https://issues.apache.org/jira/browse/CB-8407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vladimir Kotikov updated CB-8407:
---------------------------------
Description:
download() in file-transfer plugin expects path instead of internal URL on
windows
This bug seems to be introduced with these changes to cordova-plugin-file:
https://github.com/apache/cordova-plugin-file/commit/bcbeae24cd24583b790da95e0e076492eb16cd4f
All tests for download method of file-transfer plugin now fail on windows with
following message:
Exception calling native with command :: FileTransfer :: download
::exception=WinRTError: The parameter is incorrect.
As per internal discussion, this line may be the cause:
https://github.com/apache/cordova-plugin-file-transfer/blob/master/src/windows/FileTransferProxy.js#L166
was:
download() in file-transfer plugin expects path instead of internal URL on
windows
This bug seems to be introduced with these changes to cordova-plugin-file.
All tests for download method of file-transfer plugin now fail on windows with
following message:
Exception calling native with command :: FileTransfer :: download
::exception=WinRTError: The parameter is incorrect.
As per internal discussion, this line may be the cause:
https://github.com/apache/cordova-plugin-file-transfer/blob/master/src/windows/FileTransferProxy.js#L166
Mobilespec output:
org.apache.cordova.file-transfer.tests.tests >> FileTransfer methods download
filetransfer.spec.4 should download a file
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
org.apache.cordova.file-transfer.tests.tests >> FileTransfer methods download
filetransfer.spec.5 should download a file using http basic auth
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
org.apache.cordova.file-transfer.tests.tests >> FileTransfer methods download
filetransfer.spec.6 should get 401 status on http basic auth failure
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
org.apache.cordova.file-transfer.tests.tests >> FileTransfer methods download
filetransfer.spec.8 should download a file using https://
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
org.apache.cordova.file-transfer.tests.tests >> FileTransfer methods download
filetransfer.spec.11 should call the error callback on abort()
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
org.apache.cordova.file-transfer.tests.tests >> FileTransfer methods download
filetransfer.spec.9 should not leave partial file due to abort
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
org.apache.cordova.file-transfer.tests.tests >> FileTransfer methods download
filetransfer.spec.10 should be stopped by abort() right away
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
org.apache.cordova.file-transfer.tests.tests >> FileTransfer methods download
filetransfer.spec.12 should get http status on failure
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
org.apache.cordova.file-transfer.tests.tests >> FileTransfer methods download
filetransfer.spec.13 should get http body on failure
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
org.apache.cordova.file-transfer.tests.tests >> FileTransfer methods download
filetransfer.spec.14 should handle malformed urls
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
org.apache.cordova.file-transfer.tests.tests >> FileTransfer methods download
filetransfer.spec.15 filetransfer.spec.15 should handle unknown host
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
org.apache.cordova.file-transfer.tests.tests >> FileTransfer methods download
filetransfer.spec.17 progress should work with gzip encoding
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
org.apache.cordova.file-transfer.tests.tests >> FileTransfer methods download
filetransfer.spec.30 downloaded file entries should have a toNativeURL method
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
> file-transfer plugin fails to download a file if to ms-appdata specified file
> on windows
> ----------------------------------------------------------------------------------------
>
> Key: CB-8407
> URL: https://issues.apache.org/jira/browse/CB-8407
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin File Transfer
> Affects Versions: 0.4.8
> Environment: Windows platform
> File-transfer [email protected]
> file [email protected]
> Reporter: Vladimir Kotikov
> Assignee: Vladimir Kotikov
> Labels: file, file-transfer, windows
>
> download() in file-transfer plugin expects path instead of internal URL on
> windows
> This bug seems to be introduced with these changes to cordova-plugin-file:
> https://github.com/apache/cordova-plugin-file/commit/bcbeae24cd24583b790da95e0e076492eb16cd4f
> All tests for download method of file-transfer plugin now fail on windows
> with following message:
> Exception calling native with command :: FileTransfer :: download
> ::exception=WinRTError: The parameter is incorrect.
> As per internal discussion, this line may be the cause:
> https://github.com/apache/cordova-plugin-file-transfer/blob/master/src/windows/FileTransferProxy.js#L166
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]