directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r823128 - /directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/LdifEntryEditorDocumentProvider.java
Date Thu, 08 Oct 2009 11:17:38 GMT
Author: seelmann
Date: Thu Oct  8 11:17:38 2009
New Revision: 823128

URL: http://svn.apache.org/viewvc?rev=823128&view=rev
Log:
Use the right method to deal with folded and BASE64 encoded DNs

Modified:
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/LdifEntryEditorDocumentProvider.java

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/LdifEntryEditorDocumentProvider.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/LdifEntryEditorDocumentProvider.java?rev=823128&r1=823127&r2=823128&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/LdifEntryEditorDocumentProvider.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/LdifEntryEditorDocumentProvider.java
Thu Oct  8 11:17:38 2009
@@ -83,7 +83,7 @@
             throw new CoreException( new Status( IStatus.ERROR, BrowserUIConstants.PLUGIN_ID,
Messages
                 .getString( "LdifEntryEditorDocumentProvider.InvalidRecordType" ) ) ); //$NON-NLS-1$
         }
-        if ( !LdapDN.isValid( records[0].getDnLine().getRawDn() ) )
+        if ( !LdapDN.isValid( records[0].getDnLine().getUnfoldedDn() ) )
         {
             throw new CoreException( new Status( IStatus.ERROR, BrowserUIConstants.PLUGIN_ID,
Messages
                 .getString( "LdifEntryEditorDocumentProvider.InvalidDN" ) ) ); //$NON-NLS-1$
@@ -127,7 +127,7 @@
         // only continue if the LDIF model is valid
         LdifRecord[] records = getLdifModel().getRecords();
         if ( records.length != 1 || !( records[0] instanceof LdifContentRecord ) || !records[0].isValid()
-            || !LdapDN.isValid( records[0].getDnLine().getRawDn() ) )
+            || !LdapDN.isValid( records[0].getDnLine().getUnfoldedDn() ) )
         {
             return;
         }



Mime
View raw message