From 7399fdb018d2248ec36edb30f5339cdcafbe2e98 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 13 Jan 2010 17:19:12 +0000
Subject: [PATCH] Fix for issues https://opends.dev.java.net/issues/show_bug.cgi?id=4484 and https://opends.dev.java.net/issues/show_bug.cgi?id=4485.
---
opends/src/guitools/org/opends/guitools/controlpanel/browser/BrowserController.java | 25 ++++++++++++++-----------
1 files changed, 14 insertions(+), 11 deletions(-)
diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/browser/BrowserController.java b/opends/src/guitools/org/opends/guitools/controlpanel/browser/BrowserController.java
index d2c2f54..f6f359b 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/browser/BrowserController.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/browser/BrowserController.java
@@ -159,7 +159,7 @@
tree.setCellRenderer(new BrowserCellRenderer());
displayFlags = DISPLAY_ACI_COUNT;
displayAttribute = RDN_ATTRIBUTE;
- followReferrals = false;
+ followReferrals = true;
sorted = false;
showContainerOnly = true;
containerClasses = new String[0];
@@ -1436,20 +1436,23 @@
removeOneNode(node);
}
else {
- if (oldState == NodeRefresher.State.SOLVING_REFERRAL) {
+ if (oldState == NodeRefresher.State.SOLVING_REFERRAL)
+ {
node.setRemoteUrl(task.getRemoteUrl());
- if (task.getRemoteEntry() != null) {
+ if (task.getRemoteEntry() != null)
+ {
/* This is the case when there are multiple hops in the referral
- and so we have a remote referral entry but not the entry that it
- points to */
+ and so we have a remote referral entry but not the entry that it
+ points to */
updateNodeRendering(node, task.getRemoteEntry());
}
/* It is a referral and we try to follow referrals.
- We remove its children (that are supposed to be
- entries on the remote server).
- If this referral entry has children locally (even if this goes
- against the recommendation of the standards) these children will
- NOT be displayed. */
+ We remove its children (that are supposed to be
+ entries on the remote server).
+ If this referral entry has children locally (even if this goes
+ against the recommendation of the standards) these children will
+ NOT be displayed. */
+
node.setLeaf(true);
removeAllChildNodes(node, true /* Keep suffixes */);
}
@@ -1793,7 +1796,7 @@
newIcon = iconPool.getIcon(objectClasses, modifiers);
}
- // Contruct the icon text according the dn, the aci count...
+ // Construct the icon text according the dn, the aci count...
StringBuilder sb2 = new StringBuilder();
if (aciCount >= 1) {
sb2.append(String.valueOf(aciCount));
--
Gitblit v1.10.0