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

find command should validate 1st parameter

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.5
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Fully Compatible
    • ALL
    • Hide
      db.foo.runCommand({"find":1});
      
      Show
      db.foo.runCommand({"find":1});
    • Quint Iteration 5

      The first parameter (field name "find") is used to supply the namespace name. If you pass a non-string for this field, the server eventually masserts when it tries to acquire a read lock. Instead, it should validate the field type as it currently does for all the other fields to the find command.

            Assignee:
            david.storch@mongodb.com David Storch
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: