directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r778898 - /directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeRootDSERunnable.java
Date Tue, 26 May 2009 21:46:25 GMT
Author: seelmann
Date: Tue May 26 21:46:25 2009
New Revision: 778898

URL: http://svn.apache.org/viewvc?rev=778898&view=rev
Log:
Fix for DIRSTUDIO-487 (special handling for null-byte terminated namingcontexts attribute
in Lotus Domino)

Modified:
    directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeRootDSERunnable.java

Modified: directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeRootDSERunnable.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeRootDSERunnable.java?rev=778898&r1=778897&r2=778898&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeRootDSERunnable.java
(original)
+++ directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeRootDSERunnable.java
Tue May 26 21:46:25 2009
@@ -220,6 +220,11 @@
             {
                 for ( String namingContext : namingContextSet )
                 {
+                    if ( namingContext.charAt( namingContext.length() - 1 ) == '\u0000' )
+                    {
+                        namingContext = namingContext.substring( 0, namingContext.length()
- 1 );
+                    }
+
                     if ( !"".equals( namingContext ) ) //$NON-NLS-1$
                     {
                         try



Mime
View raw message