Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-247

authenticate method declares throw MongoException but doesn't actually throw it

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.5
    • Component/s: API
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • # Replies:
      3
    • Last comment by Customer:
      true

      Description

      The current signature in DB is like
      public boolean authenticate(String username, char[] passwd ) throws MongoException

      however the only things thrown by the method are NPE & IllegalStateException. It is confusing to suppose the failure to authenticate could throw an exception while in fact it only returns a boolean

        Attachments

          Activity

            People

            • Assignee:
              antoine Antoine Girbal (Inactive)
              Reporter:
              koen_serry Koen Serry
              Participants:
              Last commenter:
              Rathi Gnanasekaran
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                6 years, 36 weeks, 5 days ago
                Date of 1st Reply: