From fe6545499558bb95484defd311ed83eced6aedf4 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Thu, 19 Jul 2007 14:54:30 +0000
Subject: [PATCH] Fix issues 1943 (unable to create je-index), 1996 (exception when creating components with empty names), and 1998 (exception when creating components with blank names).

---
 opendj-sdk/opends/resource/admin/ldapMOProfile.xsl |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/resource/admin/ldapMOProfile.xsl b/opendj-sdk/opends/resource/admin/ldapMOProfile.xsl
index 60c8d08..ea0973a 100644
--- a/opendj-sdk/opends/resource/admin/ldapMOProfile.xsl
+++ b/opendj-sdk/opends/resource/admin/ldapMOProfile.xsl
@@ -80,6 +80,22 @@
       <xsl:choose>
         <xsl:when
           test="adm:profile[@name='ldap']/ldap:naming-attribute">
+          <xsl:if test="not(adm:one-to-many)">
+            <xsl:message terminate="yes">
+              <xsl:value-of
+                select="concat('Naming attribute specified for relation ',
+                               @name, ' in managed object definition ',
+                               $this-name, ' which is not a one-to-many relation.')" />
+            </xsl:message>
+          </xsl:if>
+          <xsl:if test="adm:one-to-many/@naming-property">
+            <xsl:message terminate="yes">
+              <xsl:value-of
+                select="concat('Naming attribute specified for one-to-many relation ',
+                               @name, ' in managed object definition ',
+                               $this-name, ' which uses a naming property.')" />
+            </xsl:message>
+          </xsl:if>
           <xsl:value-of
             select="concat('naming-attribute.',
                        normalize-space(@name),

--
Gitblit v1.10.0