Author: nkinder
Update of /cvs/dirsec/console/src/com/netscape/management/client/ug
In directory
cvs01.phx2.fedoraproject.org:/tmp/cvs-serv11522/src/com/netscape/management/client/ug
Modified Files:
ResourcePageObservable.java
Log Message:
Bug 583652 - Console caches magic numbers instead of DNA-generated values
The users and groups tab currently fills in the contents of an entry after
an add or modify using the values one entered into Console. If the server
added any other attributes or modified any values (such as DNA does), those
values will not be shown unless one searches for the entry again.
This patch causes the Consoel to refresh the entry by searching for it
again after an add or modify operation. The result is that one sees the
actual contents of the entry as they exist in the server.
Index: ResourcePageObservable.java
===================================================================
RCS file:
/cvs/dirsec/console/src/com/netscape/management/client/ug/ResourcePageObservable.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ResourcePageObservable.java 3 May 2010 20:37:56 -0000 1.2
+++ ResourcePageObservable.java 7 Feb 2011 19:49:52 -0000 1.3
@@ -363,7 +363,12 @@
LDAPEntry newEntry = new LDAPEntry(newRDN, Attrs);
ldapConnection.add(newEntry);
+
_entry = newEntry;
+
+ // Refresh so we get a copy of the entrt from the DS. This ensures
+ // that we see any updates that the DS added to the entry.
+ refresh();
}
catch (LDAPException e) {
Debug.println(0,
Show replies by thread