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

Missing property name from exception message when using keypath with wildcard

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Adding a notification callback with keypath FirsName., where FirstName is a string property gives an error with the following message: Property '' in KeyPath 'FirstName.' is not a collection of objects or an object reference, so it cannot be used as an intermediate keypath element.

      The name of the property is missing and this is due to https://github.com/realm/realm-core/blob/0b93c29e0a0cbf667342ab6cd1190f6770a66024/src/realm/object-store/shared_realm.cpp#L1584-L1587

      It seems to be due to the fact that it's not checked if the public_name is empty (and so to use the property name)

            Assignee:
            nicola.cabiddu@mongodb.com Nicola Cabiddu
            Reporter:
            unitosyncbot Unito Sync Bot
            AD Core
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: