src/com/netscape/admin/dirserv/browser/ChildrenController.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 01ddc9c121e8d226cd93ee3436823bd9db7500ab
Author: Nathan Kinder <nkinder(a)redhat.com>
Date: Thu Jun 3 12:57:10 2010 -0700
Bug 599732 - Root node in directory browser shows DN syntax error
Clicking on the root node in the directory browser in DS console
shows a DN syntax error. The root node is created with a bogus
DN of "no LDAP connection". This was being used as a search base
in an attempt to find child entries to display in the right hand
panel of the directory browser.
The fix is to avoid searching for child entries of the root node
since the root node itself doesn't actually represent an LDAP
entry.
diff --git a/src/com/netscape/admin/dirserv/browser/ChildrenController.java
b/src/com/netscape/admin/dirserv/browser/ChildrenController.java
index 01371d0..9eccfcc 100644
--- a/src/com/netscape/admin/dirserv/browser/ChildrenController.java
+++ b/src/com/netscape/admin/dirserv/browser/ChildrenController.java
@@ -365,7 +365,10 @@ public class ChildrenController {
*/
public void setBaseNodeInfo(IBrowserNodeInfo node, boolean hasIndex) {
_parentHasIndex = hasIndex;
- if (node == null) {
+ // We don't want to search for children of the
+ // root node since it doesn't represent an actual
+ // entry.
+ if ((node == null) || node.isRootNode()) {
_parentNode = null;
} else {
_parentNode = node.getNode();
Show replies by date