Uploaded image for project: 'Realm Cocoa SDK'
  1. Realm Cocoa SDK
  2. RCOCOA-811

RealmSwift 5.3.5 Failure to migrate from V4.4.1 database correctly

      Goals

      Upgrade the Realm Cloud client application from RealmSwift v4.4.1 to v5.3.5 automatically.

      Note this issue has been logged previously against earlier versions

      Expected Results

      Expect upgrade to complete successfully when new version of the client application using RealmSwift v5.3.5 opens an existing synced or non-synced realm file.

      Actual Results

      The local realm file appears to upgrade but certain subsequent realm queries return nil instead of the correct list or realm objects.

      Steps for others to Reproduce

      Update an existing Realm client application from RealmSwift v4.4.1 to v5.3.5 and run the application using the existing v4.4.1 realm file.

      There should be a slight delay while the realm file gets upgraded to the new realm-core file format when first opening the realm file - i.e. call to Realm() api.

      Once the realm has been opened perform a real query such as the following:

      let items = realm.objects(Item.self).filter("id = %@", "some")

      In general this query returns nil whereas the following returns the correct list of items

      let items = realm.objects(Item.self)

      Code Sample

      See above

      Version of Realm and Tooling

      Realm framework version: RealmSwift v 5.3.5

      Realm Object Server version: Realm Cloud

      Xcode version: 11.6

      iOS/OSX version: macOS 10.15.6

      Dependency manager + version: N/A

            Assignee:
            jorgen.edelbo@mongodb.com Jørgen Edelbo
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: