Uploaded image for project: 'Directory Client API'
  1. Directory Client API
  2. DIRAPI-200

unBind() followed by bind() on the same connection may throw an IllegalStateException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0-M23
    • 1.0.0-M24
    • None

    Description

      Not sure if this even should be allowed but the fact that it can result in an exception is disconcerting. I added a test case to LdapConnectionPoolTest (with the unBind() currently commented out) that can be used to reproduce this issue.

      The main question here, in my mind, is whether or not this should be allowed. If not allowed, we should immediately throw a more reasonable exception if any operation is attempted on an LdapConnection that has had unBind() called on it. Perhaps still an IllegalStateException, but maybe with a message stating connection no longer valid after unBind(). More importantly, this should happen every time, rather than just when the race condition bears its ugly face. For more discussion, see this email chain.

      Attachments

        Issue Links

          Activity

            People

              elecharny Emmanuel Lécharny
              ltheisen@mitre.org lucas theisen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: