Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-601

exception during auth

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • legacy-1.0.0-rc4, legacy-1.0.0
    • None

    Description

      I recently added auth to my application.
      I got following exception:
      Exception's what()=nsToCollectionSubstring: no .

      The related code is:
      100 mongoPtr_ = new mongo::DBClientConnection();
      101 if (!mongoPtr_->connect(mongoHostAndPort, errString))

      { 112 return false; 113 }

      ;
      104 if (!mongoPtr_->auth(db, user, pwd, errString))

      { 105 return false; 106 }

      ;
      Line 104 throws the exception.

      From shell I am able to call auth using the above db, user, pwd:
      %mongo
      >use EventAuthDatabase
      switched to db EventAuthDatabase
      > db.auth("eventLoader","12345678")
      1

      Thanks!
      Judy

      Attachments

        Activity

          People

            Unassigned Unassigned
            Judy.Han Judy Han [X]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: