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

Passing an integer as a collection name to validate causes a segfault

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 2.7.8
    • Affects Version/s: 2.7.8
    • Component/s: Stability
    • None
    • ALL
    • Hide

      > db.runCommand("validate")
      or
      > db.runCommand(

      {validate :1}

      )

      Show
      > db.runCommand("validate") or > db.runCommand( {validate :1} )

      If you run the "validate" command via the string runCommand string syntax you will segfault the server, as this runs on an invalid collection

      This looks like a regression in the 2.7.8 branch, as this correctly returns an error in 2.7.7

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            david.hows David Hows
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: