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

mongodump throwing improper error message with authentication enabled

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.7.5
    • 1.6.2
    • None
    • None
    • MacOSX
    • ALL

    Description

      mongod running with --auth parameter

      Connecting without user/password parameters throws a non-speaking
      error message. A proper error message would "no authentication credentials provided"
      instead of:

      ajung@blackmoon:~/sandboxes/occ> bin/mongodump -h b --port 10200 -d foo
      connected to: b:10200
      DATABASE: foo to dump/foo
      terminate called after throwing an instance of 'std::out_of_range'
      what(): basic_string::substr
      Aborted

      Attachments

        Activity

          People

            eliot Eliot Horowitz (Inactive)
            yet@gmx.de Andreas Jung
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: