[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Fedora-directory-commits] directoryconsole/src/com/netscape/admin/dirserv DSContentPage.java, 1.3, 1.4



Author: nkinder

Update of /cvs/dirsec/directoryconsole/src/com/netscape/admin/dirserv
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv2750

Modified Files:
	DSContentPage.java 
Log Message:
Resolves: 204510
Summary: Fixed paste action to follow LDAP referrals.



Index: DSContentPage.java
===================================================================
RCS file: /cvs/dirsec/directoryconsole/src/com/netscape/admin/dirserv/DSContentPage.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- DSContentPage.java	13 Jul 2007 16:34:39 -0000	1.3
+++ DSContentPage.java	2 Aug 2007 16:35:32 -0000	1.4
@@ -1624,7 +1624,8 @@
                 if (ldc != null) {
                     String dn = Helper.getNodeInfoDN(node);
                     /* Do the paste */
-                    Paster paster = new Paster(ldc, dn, _framework, _clipboard);
+                    LDAPConnection ldcNr = prepareReferralConnection(ldc);
+                    Paster paster = new Paster(ldcNr, dn, _framework, _clipboard);
                     paster.execute();
                     
                     /* Update the tree */
@@ -1651,6 +1652,9 @@
                             }
                         }                        
                     }            
+                    try {
+                        ldcNr.disconnect(); // prepareReferralConnection clones connection
+                    } catch (Exception ignore) {}
                     _connectionPool.releaseConnection(ldc);
                 }
             }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]