directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r614027 - in /directory/studio/trunk: studio-ldif-parser/src/main/java/org/apache/directory/studio/ldifparser/model/container/ studio-ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/text/
Date Mon, 21 Jan 2008 22:01:17 GMT
Author: seelmann
Date: Mon Jan 21 14:01:08 2008
New Revision: 614027

URL: http://svn.apache.org/viewvc?rev=614027&view=rev
Log:
Fix for DIRSTUDIO-166 (LDif Import changetype: modify add attribute attrId is not case insensitive)

Modified:
    directory/studio/trunk/studio-ldif-parser/src/main/java/org/apache/directory/studio/ldifparser/model/container/LdifModSpec.java
    directory/studio/trunk/studio-ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/text/LdifCompletionProcessor.java

Modified: directory/studio/trunk/studio-ldif-parser/src/main/java/org/apache/directory/studio/ldifparser/model/container/LdifModSpec.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-ldif-parser/src/main/java/org/apache/directory/studio/ldifparser/model/container/LdifModSpec.java?rev=614027&r1=614026&r2=614027&view=diff
==============================================================================
--- directory/studio/trunk/studio-ldif-parser/src/main/java/org/apache/directory/studio/ldifparser/model/container/LdifModSpec.java
(original)
+++ directory/studio/trunk/studio-ldif-parser/src/main/java/org/apache/directory/studio/ldifparser/model/container/LdifModSpec.java
Mon Jan 21 14:01:08 2008
@@ -152,7 +152,7 @@
             String att = this.getModSpecType().getUnfoldedAttributeDescription();
             for ( int i = 0; i < attrVals.length; i++ )
             {
-                if ( !att.equals( attrVals[i].getUnfoldedAttributeDescription() ) )
+                if ( !att.equalsIgnoreCase( attrVals[i].getUnfoldedAttributeDescription()
) )
                 {
                     return false;
                 }
@@ -195,7 +195,7 @@
             String att = this.getModSpecType().getUnfoldedAttributeDescription();
             for ( int i = 0; i < attrVals.length; i++ )
             {
-                if ( !att.equals( attrVals[i].getUnfoldedAttributeDescription() ) )
+                if ( !att.equalsIgnoreCase( attrVals[i].getUnfoldedAttributeDescription()
) )
                 {
                     return "Attribute descriptions don't match";
                 }

Modified: directory/studio/trunk/studio-ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/text/LdifCompletionProcessor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/text/LdifCompletionProcessor.java?rev=614027&r1=614026&r2=614027&view=diff
==============================================================================
--- directory/studio/trunk/studio-ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/text/LdifCompletionProcessor.java
(original)
+++ directory/studio/trunk/studio-ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/text/LdifCompletionProcessor.java
Mon Jan 21 14:01:08 2008
@@ -229,7 +229,7 @@
                     for ( int a = 0; a < attributeNames.length; a++ )
                     {
                         if ( rawAttributeDescription.length() == 0
-                            || attributeNames[a].startsWith( rawAttributeDescription ) )
+                            || attributeNames[a].toLowerCase().startsWith( rawAttributeDescription.toLowerCase()
) )
                         {
 
                             String proposal = attributeNames[a];



Mime
View raw message