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

asyncOpen doesn't handle authentication errors

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None

      When open realm user doesn't have permission for with asyncOpen its callback is never called.

      let configuration = Realm.Configuration(
          syncConfiguration: .init(user: nonAdminUser,
                                   realmURL: URL(string: "realm://localhost:9080/__admin")!)
      )
      
      Realm.asyncOpen(configuration: configuration) { realm, error in
          // never called
      }
      

      SyncManager.shared.errorHandler reports auth error.

      Realm framework version: 2.9
      Realm Object Server version: 1.8.2

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: