exception during auth

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: legacy-1.0.0-rc4, legacy-1.0.0
    • Component/s: None
    • Environment:
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

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

              Created:
              Updated:
              Resolved: