out-of-bounds exception when dropRole gets null input

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.5.4
    • Affects Version/s: 2.5.3
    • Component/s: Security
    • Linux
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      > 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

            Assignee:
            Spencer Brody (Inactive)
            Reporter:
            Samantha Ritter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: