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

mongodump throwing improper error message with authentication enabled

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.7.5
    • Affects Version/s: 1.6.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      MacOSX
    • ALL

      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

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

              Created:
              Updated:
              Resolved: