Tenant information set by dollar tenant on applyOps command is dropped off when checking operation authorization

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Service Arch
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The function OplogApplicationChecks::checkOperationAuthorization does not handle the tenant information which is set by $tenant on the applyOps command request. That makes the server returns error message "TenantId must be set on nss list_collections_no_views.system.views" and error code 6972100.

      This issue is found when we test the applyOps command with injected dollar tenant. Here are some jstests which run command "applyOps":

      • jstests/core/list_collections_no_views.js
      • jstests/core/apply_ops1.js
      • jstests/core/apply_ops2.js
      • jstests/core/apply_ops_dups.js
      • jstests/core/apply_ops_index_collation.js
      • jstests/core/apply_ops_missing_field.js
      • jstests/core/apply_ops_system_dot_views.js
      • jstests/core/list_collections_no_views.js

            Assignee:
            [DO NOT USE] Backlog - Service Architecture
            Reporter:
            Sophia Tan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: