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

Do not parse shardCollection request using shardsvrCreateCollection parser

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • ALL
    • v8.0

      After SERVER-81188 a shardCollection request is parsed using shardsvrCreateCollection parser. This was done to ensure full compatibility between the 2 requests. However, any extra field not allowed in shardCollection could be propagated to shardsvrCreateCollection if the field is present in shardsvrCreateCollection

      Make sure to:

      • parse the cmdObj using ShardCollection::parse
      • remove shardsvrCreateCollection::parse
      • set 1 by 1 every field in shardsvrCreateCollection using the corresponding setters.

            Assignee:
            backlog-server-catalog-and-routing [DO NOT USE] Backlog - Catalog and Routing
            Reporter:
            enrico.golfieri@mongodb.com Enrico Golfieri
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: