directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r437283 - /directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java
Date Sun, 27 Aug 2006 02:55:54 GMT
Author: akarasulu
Date: Sat Aug 26 19:55:53 2006
New Revision: 437283

URL: http://svn.apache.org/viewvc?rev=437283&view=rev
Log:
Fix for DIRSERVER-663

Modified:
    directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java

Modified: directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java
URL: http://svn.apache.org/viewvc/directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java?rev=437283&r1=437282&r2=437283&view=diff
==============================================================================
--- directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java
(original)
+++ directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java
Sat Aug 26 19:55:53 2006
@@ -976,14 +976,23 @@
            // Regenerate the normalized name and the original string
            normalizeInternal();
            toUpName();
-
-           return this;
        }
        else
        {
-           log.error( "Not a valid LdapDN suffix : " + name );
-           throw new InvalidNameException( "The suffix is not a LdapDN" );
+           if ( ( name == null ) || ( name.size() == 0 ) )
+           {
+               return this;
+           }
+
+           for ( int ii = 0; ii < name.size(); ii++ )
+           {
+               Rdn rdn = new Rdn( name.get( ii ) );
+               rdns.add( size() - posn, rdn );
+           }
+           normalizeInternal();
+           toUpName();
        }
+       return this;
    }
 
 



Mime
View raw message