Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-248

Crash with X509 auth

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.9
    • Affects Version/s: 1.4.8
    • Component/s: None
    • Environment:
      OS X 10.9.4
      MongoDB 2.6.4
      Node 0.10.30
    • 2

      The authenticate method of Db success but then the connection ends. Finally, a few seconds after the app crashes (because of auto_reconnect=true):
      TypeError: Cannot read property 'connection' of undefined
      at authenticate (/Users/Alex/Developer/Kaph/co.kaph.id.ws/node_modules/mongodb/lib/mongodb/auth/mongodb_x509.js:12:13)
      at _apply_auths_serially (/Users/Alex/Developer/Kaph/co.kaph.id.ws/node_modules/mongodb/lib/mongodb/connection/base.js:323:5)
      at Server.Base._apply_auths (/Users/Alex/Developer/Kaph/co.kaph.id.ws/node_modules/mongodb/lib/mongodb/connection/base.js:300:3)
      at /Users/Alex/Developer/Kaph/co.kaph.id.ws/node_modules/mongodb/lib/mongodb/connection/server.js:651:16
      at /Users/Alex/Developer/Kaph/co.kaph.id.ws/node_modules/mongodb/lib/mongodb/connection/server.js:388:9
      at Server.Base._callHandler (/Users/Alex/Developer/Kaph/co.kaph.id.ws/node_modules/mongodb/lib/mongodb/connection/base.js:445:41)
      at /Users/Alex/Developer/Kaph/co.kaph.id.ws/node_modules/mongodb/lib/mongodb/connection/server.js:478:18
      at MongoReply.parseBody (/Users/Alex/Developer/Kaph/co.kaph.id.ws/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:68:5)
      at null.<anonymous> (/Users/Alex/Developer/Kaph/co.kaph.id.ws/node_modules/mongodb/lib/mongodb/connection/server.js:436:20)
      at emit (events.js:95:17)

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            alejandrocgf@me.com Alejandro Carretero
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: