Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-664

Schema mismatch for read only open async.

      When an app opens a sync Realm with asyncOpen, it receives the initial schema with the
      initial download from the server.
      If the app has a schema with extra columns compared to the server's schema, the app will
      add the extra columns and upload them to the server.
      If the permission to the server Realm is read-only, this chain of events lead to a permission dnied error from the server.

      A better behavior would be that the client issues a "schema mismatch" error. This behavior would make it easier for the app developer to debug the problem.

      In summary: Issue a "schema mismatch" error after async open returns if the Realm is read-only and the app schema contains extra columns.

      See the issue
      https://github.com/realm/realm-object-server/issues/259#issuecomment-348319532
      for an example.

            Assignee:
            jonathan.reams@mongodb.com Jonathan Reams
            Reporter:
            unitosyncbot Unito Sync Bot
            AD Sync Client
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: