[TIMOB-14364] iOS7: setRemoteBackup(false) causes exception to be thrown if file or directory not found
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-08-28T20:04:45.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 18, 2013 Sprint 18 API |
Components | iOS |
Labels | ios7, iphone, ipod |
Reporter | Investis Ltd |
Assignee | Ingo Muschenetz |
Created | 2013-06-25T04:40:11.000+0000 |
Updated | 2017-03-21T21:35:25.000+0000 |
Description
*Problem*
If the application is meant to set remote backup to false to any directory or file the app throws an exception with no file or directory found
*Sample code*
Titanium.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory).setRemoteBackup(false);
*Error log*
[INFO] {
backtrace = "#0 () at :0";
line = 1;
message = "Error setting remote backup flag:";
nativeLocation = "-[TiFilesystemFileProxy setRemoteBackup:] (TiFilesystemFileProxy.m:494)";
nativeReason = "No such file or directory";
sourceId = 52725952;
sourceURL = "file:///var/mobile/Applications/DF166A0B-7A5B-45B6-907B-F2914B787511/Iberdrola%20IR.app/app.js";
}
We assume that the code is unable to find the applicationDataDirectory and is neither able to write any files here.
The problem is around the applicationdatadirectory/temporarydirectoy/caches directory. Files cannot be stored directly in this directories. Temporary workaround Make change in the
Post beta 5 this issue seems to have been resolved.
Closing ticket as the issue cannot be reproduced and due to the above comments.