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

out-of-bounds exception when dropRole gets null input

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.5.4
    • 2.5.3
    • Security
    • Linux

    Description

      > var n = null;
      > db.runCommand(

      { dropRole: n }

      )

      expect graceful error, instead db dies:

      m27000| 2013-10-31T15:26:09.229+0000 [conn1] ERROR: Uncaught std::exception: out of range, terminating
      m27000| dbexit: 2013-10-31T15:26:09.229+0000 [conn1] shutdown: going to close listening sockets...
      m27000| 2013-10-31T15:26:09.229+0000 [conn1] closing listening socket: 10
      m27000| 2013-10-31T15:26:09.229+0000 [conn1] closing listening socket: 11
      m27000| 2013-10-31T15:26:09.229+0000 [conn1] removing socket file: /tmp/mongodb-27000.sock
      m27000| 2013-10-31T15:26:09.229+0000 [conn1] shutdown: going to flush diaglog...
      m27000| 2013-10-31T15:26:09.229+0000 [conn1] shutdown: going to close sockets...
      m27000| 2013-10-31T15:26:09.229+0000 [conn1] shutdown: waiting for fs preallocator...
      m27000| 2013-10-31T15:26:09.229+0000 [conn1] shutdown: lock for final commit...
      m27000| 2013-10-31T15:26:09.229+0000 [conn1] shutdown: final commit...
      2013-10-31T15:26:09.230+0000 DBClientCursor::init call() failed
      2013-10-31T15:26:09.231+0000 Error: error doing query: failed at src/mongo/shell/query.js:81

      Attachments

        Activity

          People

            spencer@mongodb.com Spencer Brody (Inactive)
            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: