directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grzegorz Grzybek (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRSTUDIO-861) Errors while getting OU members
Date Wed, 13 Feb 2013 09:16:14 GMT

    [ https://issues.apache.org/jira/browse/DIRSTUDIO-861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13577424#comment-13577424
] 

Grzegorz Grzybek commented on DIRSTUDIO-861:
--------------------------------------------

I had some time to check this bug which annoyed me since migration from 1.x to 2.x version
of this plugin. The problem is resolved for me (I'm using my own version of {{org.apache.directory.studio.ldapbrowser.core_2.0.0.v20130131.jar}})
by the following _diff_:

{noformat}
$ git diff plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/Utils.java
diff --git a/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/Utils.java
b/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/Utils.java
index cd33c38..fb18393 100644
--- a/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/Utils.java
+++ b/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/Utils.java
@@ -130,7 +130,7 @@ public class Utils
         String oid = schema != null ? schema.getAttributeTypeDescription( ava.getNormType()
).getOid() : ava
             .getNormType();
         return Strings.toLowerCase( Strings.trim( oid ) )
-            + "=" + Strings.toLowerCase( Strings.trim( ava.getValue().getString() ) ); //$NON-NLS-1$
+            + "=" + Strings.trim( ava.getValue().getString() ).toLowerCase(); //$NON-NLS-1$
     }


{noformat}

Please see pull request: https://github.com/apache/directory-studio/pull/1.

regards
Grzegorz Grzybek
                
> Errors while getting OU members
> -------------------------------
>
>                 Key: DIRSTUDIO-861
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-861
>             Project: Directory Studio
>          Issue Type: Bug
>         Environment: Darwin 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48
PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
>            Reporter: Anatolij N.
>
> Can't get members of OU, errors occur, first occuring error stacktrace:
> {code:title=Error 1|borderStyle=solid}
> Error while reading entry
>  - 269
> java.lang.ArrayIndexOutOfBoundsException: 269
> 	at org.apache.directory.shared.util.Strings.toLowerCase(Strings.java:1813)
> 	at org.apache.directory.studio.ldapbrowser.core.utils.Utils.getOidString(Utils.java:132)
> 	at org.apache.directory.studio.ldapbrowser.core.utils.Utils.getOidString(Utils.java:117)
> 	at org.apache.directory.studio.ldapbrowser.core.utils.Utils.getNormalizedOidString(Utils.java:98)
> 	at org.apache.directory.studio.ldapbrowser.core.model.impl.BrowserConnection.getEntryFromCache(BrowserConnection.java:174)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.SearchRunnable.searchAndUpdateModel(SearchRunnable.java:341)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.InitializeChildrenRunnable.executeSearch(InitializeChildrenRunnable.java:359)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.InitializeChildrenRunnable.initializeChildren(InitializeChildrenRunnable.java:210)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.InitializeChildrenRunnable.run(InitializeChildrenRunnable.java:169)
> 	at org.apache.directory.studio.connection.core.jobs.StudioConnectionJob.run(StudioConnectionJob.java:109)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
> 269
> {code} 
> After first error message I get second message:
> {code:title=Error 2|borderStyle=solid}
> Error while reading entry
> java.lang.ArrayIndexOutOfBoundsException
> java.lang.ArrayIndexOutOfBoundsException
> {code} 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message