You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Simon MacDonald (JIRA)" <ji...@apache.org> on 2012/11/02 19:09:13 UTC
[jira] [Created] (CB-1808) FileEntry.moveTo across file systems
incorrectly calls the success callback
Simon MacDonald created CB-1808:
-----------------------------------
Summary: FileEntry.moveTo across file systems incorrectly calls the success callback
Key: CB-1808
URL: https://issues.apache.org/jira/browse/CB-1808
Project: Apache Cordova
Issue Type: Bug
Components: Android
Affects Versions: 2.2.0, 1.5.0
Reporter: Simon MacDonald
Assignee: Simon MacDonald
Fix For: 2.3.0
FileEntry.moveTo across file systems incorrectly calls the success callback
When you try to move files across file systems on Android the move command fails but we still call the success callback. Need to check for this situation and call the error callback.
--
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
[jira] [Resolved] (CB-1808) FileEntry.moveTo across file systems
incorrectly calls the success callback
Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon MacDonald resolved CB-1808.
---------------------------------
Resolution: Fixed
So I fixed this so when you try to move a file or directory across file systems we fall back to copying the data then deleting the original. After the copy I check to make sure it work properly before doing the delete. If the copy/delete phase fails then the error callback is called.
> FileEntry.moveTo across file systems incorrectly calls the success callback
> ---------------------------------------------------------------------------
>
> Key: CB-1808
> URL: https://issues.apache.org/jira/browse/CB-1808
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.5.0, 2.2.0
> Reporter: Simon MacDonald
> Assignee: Simon MacDonald
> Fix For: 2.3.0
>
>
> FileEntry.moveTo across file systems incorrectly calls the success callback
> When you try to move files across file systems on Android the move command fails but we still call the success callback. Need to check for this situation and call the error callback.
--
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