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: 1.0.0-M15
    • Fix Version/s: 1.0.0-M16
    • 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

        Emmanuel Lecharny created issue -
        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
        Emmanuel Lecharny made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Emmanuel Lecharny made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Emmanuel Lecharny added a comment -

        Reopening to assign versions

        Show
        Emmanuel Lecharny added a comment - Reopening to assign versions
        Emmanuel Lecharny made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Emmanuel Lecharny made changes -
        Fix Version/s 1.0.0-M16 [ 12324002 ]
        Emmanuel Lecharny made changes -
        Affects Version/s 1.0.0-M15 [ 12323894 ]
        Emmanuel Lecharny made changes -
        Status Reopened [ 4 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        16h 10m 1 Emmanuel Lecharny 04/Feb/13 18:39
        Resolved Resolved Closed Closed
        8s 1 Emmanuel Lecharny 04/Feb/13 18:39
        Closed Closed Reopened Reopened
        702d 22h 16m 1 Emmanuel Lecharny 08/Jan/15 16:56
        Reopened Reopened Closed Closed
        28s 1 Emmanuel Lecharny 08/Jan/15 16:56

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development