Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-72172

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

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

      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:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            sophia.tan@mongodb.com Sophia Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: