From a35f8a47cca3dbdb584cad85c5aa61f27e0bf42a Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Sat, 07 Oct 2006 02:48:40 +0000
Subject: [PATCH] Fix a bug that allows the server to overlook the fact that there are duplicate values in an LDAP attribute when converting to a core Attribute (it would silently discard the duplicate rather than rejecting it).
---
opends/src/server/org/opends/server/messages/ProtocolMessages.java | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/messages/ProtocolMessages.java b/opends/src/server/org/opends/server/messages/ProtocolMessages.java
index 448c770..98d4f8c 100644
--- a/opends/src/server/org/opends/server/messages/ProtocolMessages.java
+++ b/opends/src/server/org/opends/server/messages/ProtocolMessages.java
@@ -4169,6 +4169,16 @@
/**
+ * The message ID for the message that will be used if an LDAP attribute
+ * contains duplicate values. This takes a single argument, which is the name
+ * of the attribute.
+ */
+ public static final int MSGID_LDAP_ATTRIBUTE_DUPLICATE_VALUES =
+ CATEGORY_MASK_PROTOCOL | SEVERITY_MASK_MILD_ERROR | 384;
+
+
+
+ /**
* Associates a set of generic messages with the message IDs defined in this
* class.
*/
@@ -4661,6 +4671,9 @@
"Cannot decode the provided ASN.1 element as an LDAP " +
"attribute because the set of values could not be " +
"decoded: %s.");
+ registerMessage(MSGID_LDAP_ATTRIBUTE_DUPLICATE_VALUES,
+ "The provided LDAP attribute %s contains duplicate " +
+ "values.");
registerMessage(MSGID_LDAP_ADD_REQUEST_DECODE_SEQUENCE,
--
Gitblit v1.10.0