Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-14364

iOS7: setRemoteBackup(false) causes exception to be thrown if file or directory not found

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Component/s: iOS
    • Labels:
    • Environment:

      iPhone/iPad, iOS 7, ipod 5th Generation sdk 3.1.1

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ingo Ingo Muschenetz
                Reporter:
                investis Investis Ltd
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-16844
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code