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

MR cluster command does not validate collection namespace

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 4.3.1
    • MapReduce
    • Fully Compatible
    • ALL
    • 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 } });    
    • Query 2019-07-15, Query 2019-07-29
    • 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

              xinhao.zhang@mongodb.com Xin Hao Zhang (Inactive)
              xinhao.zhang@mongodb.com Xin Hao Zhang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: