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

Server error when MongoDB Atlas rules on documents of collection contains %%user

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      How frequently does the bug occur?

      Always

      Description

      If there is added rule using %%user, the call to MongoDB Atlas finishes with server error. So there is a problem either with implementation of %%user in MongoDB Atlas, that is much more probable, or this SDK in web browser is not sending some kind of data about user. The bug can be caused when %%user is undefined in MongoDB Atlas. One example of the rule for searching in collection when the call fails:

      {"%%user.id": "rfretgyuji7js"}
      

      MongoDB Atlas has awful tech support so there is low probability they will investigate and fix this issue.

      Stacktrace & log output

      No response

      Can you reproduce the bug?

      Always

      Reproduction Steps

      No response

      Version

      latest

      What services are you using?

      Both Atlas Device Sync and Atlas App Services

      Are you using encryption?

      Yes

      Platform OS and version(s)

      Mozilla Firefox

      Build environment

      Which debugger for React Native: ..

      Cocoapods version

      No response

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: