Uploaded image for project: 'Realm Kotlin'
  1. Realm Kotlin
  2. RKOTLIN-539

Sync enums are not resilient if Core sends error codes that are not mapped correctly in the C-API

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sync
    • Labels:
      None

      This will result in a native crash in cinterop as all our enum mapping code is expecting that all error codes are mapped to enum values.

      It is unclear if Core can promise this stability as the layer is currently maintained by hand and thus easy to miss in PR reviews and we should consider adding a catch-all UNKNOWN to the Sync enums so this doesn't bring down user apps.

      See https://github.com/realm/realm-core/issues/5519

            Assignee:
            clemente.tort@mongodb.com Clemente Tort Barbero
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: