mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

neil_a_wilson
23.04.2007 fac2cf5bdc9dd6ec9ef58235d4faaa24555e3d83
Update the ClientConnection.disconnect() method variant that takes a message
ID and optional set of arguments so that it does not attempt to get the
corresponding message string if the message ID is invalid (e.g., -1) and
therefore no message is to be sent to the client or written to the server log.

OpenDS Issue Number: 1312
1 files modified
7 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/api/ClientConnection.java 7 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/api/ClientConnection.java
@@ -521,10 +521,17 @@
                               boolean sendNotification,
                               int messageID, Object... arguments)
  {
    if (messageID <= 0)
    {
      disconnect(disconnectReason, sendNotification, null, -1);
    }
    else
    {
    String message = getMessage(messageID, arguments);
    disconnect(disconnectReason, sendNotification, message,
               messageID);
  }
  }