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

MR cluster command does not validate collection namespace

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.1
    • Component/s: MapReduce
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      On mongos, run mapReduce on an invalid collection name.

       

      db.runCommand({ 
         mapReduce: /test/, 
         map: map, 
         reduce: reduce, 
         out: {inline: 1}
      });
      

       

       

      Show
      On mongos, run mapReduce on an invalid collection name.   db.runCommand({ mapReduce: /test/, map: map, reduce: reduce, out: {inline: 1 } });    
    • Sprint:
      Query 2019-07-15, Query 2019-07-29
    • Linked BF Score:
      19

      Description

      A refactor for the cluster mapReduce by SERVER-41938 fails to validate the collection namespace on sharded clusters, which must be a string. Specifically the previous implementation uses parseNsCollectionRequired while the recent change uses parseNsFromCommand which skips some validations.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              xinhao.zhang Xin Hao Zhang (Inactive)
              Reporter:
              xinhao.zhang Xin Hao Zhang (Inactive)
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: