Directory Client API
  1. Directory Client API
  2. DIRAPI-119

Soem NPE when sendning some request with lacking data

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Sending a request, like a ModifyRequest, with some missing data like the DN will leads to some NPE inside the encoder, which will translates to some cryptic error being returned by the server :

      org.apache.directory.api.ldap.model.exception.LdapException: PROTOCOL_ERROR: The server will disconnect!

      We need to return a decent error, and also avoid any NPE.

        Activity

        Hide
        Emmanuel Lecharny added a comment -

        Added some checks to avoid those NPE.

        Fixed with http://svn.apache.org/viewvc?rev=1442292&view=rev

        Show
        Emmanuel Lecharny added a comment - Added some checks to avoid those NPE. Fixed with http://svn.apache.org/viewvc?rev=1442292&view=rev

          People

          • Assignee:
            Unassigned
            Reporter:
            Emmanuel Lecharny
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development