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

Core should validate Sync Schemas

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sync

      It looks like ObjectStore doesn't account for the schemas not supported by the Server, i.e. Lists of nullable primitive values are not supported, but Core will happily create the schema anyway (because they are supported for local Realms).

      But this then result in a BadChangeset when connecting to the server, which contains a very unhelpful error message.

       ERROR "Bad changeset (UPLOAD)" (error_code=212, try_again=false, recovery_disabled=false)
      

      Ideally, Core should catch this during schema validation and throw an exception. This should be possible since it already knows there that the schema is for a synchronized Realm.

            Assignee:
            Unassigned Unassigned
            Reporter:
            christian.melchior@mongodb.com Christian Melchior (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: