Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-1363

Opening realm with sync enabled fails with empty string partition value

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None

      When I try to open a realm with sync enabled using a partition value of "" (empty string), I get the following error: "partitionValue of type 'string' may not be an empty string". It looks like this was added in https://github.com/realm/realm-js/pull/3205. The sync server does not impose this restriction so I don't think this check should be enforced by the client.

      The check which leads to the exception is https://github.com/realm/realm-js/blob/master/src/js_sync.hpp#L66-L68

            Assignee:
            tom.duncalf@mongodb.com Tom Duncalf (Inactive)
            Reporter:
            kiro.morkos@mongodb.com Kiro Morkos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: