directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r356221 - /directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/RDNParser.java
Date Mon, 12 Dec 2005 09:09:43 GMT
Author: elecharny
Date: Mon Dec 12 01:09:39 2005
New Revision: 356221

URL: http://svn.apache.org/viewcvs?rev=356221&view=rev
Log:
I case we have a multiple RDN (a=b + c=d), keep the lowest 
Name (alphabetical order) on first position.

if we have c=d + a=b, then a=b will be the first Attribute of the list

Modified:
    directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/RDNParser.java

Modified: directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/RDNParser.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/RDNParser.java?rev=356221&r1=356220&r2=356221&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/RDNParser.java
(original)
+++ directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/RDNParser.java
Mon Dec 12 01:09:39 2005
@@ -426,6 +426,7 @@
         int newPos = 0;
         String type = null;
         String value = null;
+        int start = pos;
         
         pos = StringUtils.trimLeft( chars, pos );
         
@@ -466,6 +467,7 @@
         }
 
         int end = parseNameComponents( chars, newPos, rdn );
+        rdn.setUpName( new String( chars, start, end - start ) );
         return end;
     }
 



Mime
View raw message