-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
QO 2022-10-03
This bug is specific to the new optimizer Bonsai. For a test like this one, the server asserts with the following errmsg:
"Authorization Session contains more authorization checks then permitted by contract.",
After a brief investigation, the callstack looks like we're building the WhereMatchExpression which holds a JsFunction. The JsFunction loads the stored functions which reads from the system.js collection (find command) and eventually causes the assertion. It could be that the existing translation through aggregate is causing issues with auth and translating directly from the find command would fix this.
- depends on
-
SERVER-62407 Translate find command directly to ABT without transiting through DocumentSource
- Closed