From 66871c50937eede01d26052ea6e355fbdfb5ab57 Mon Sep 17 00:00:00 2001 From: Endi S. Dewata Date: Apr 02 2010 17:47:06 +0000 Subject: Bug 496863 - 'Construct' button creates incorrect referral urls Resolves: bug 496863 Bug Description: 'Construct' button creates incorrect referral urls Reviewed by: rmeggins (and pushed by) Fix Description: The com.netscape.admin.dirserv.panel.LDAPUrlDialog. notifyUpdate() has been modified to encode the base DN of the LDAP URL. Platforms tested: F12 --- diff --git a/src/com/netscape/admin/dirserv/panel/LDAPUrlDialog.java b/src/com/netscape/admin/dirserv/panel/LDAPUrlDialog.java index c62dc42..85a1184 100644 --- a/src/com/netscape/admin/dirserv/panel/LDAPUrlDialog.java +++ b/src/com/netscape/admin/dirserv/panel/LDAPUrlDialog.java @@ -225,7 +225,7 @@ implements DocumentListener, SuiConstants { String tdn = _refTargetDNText.getText().trim(); String sUrl = "ldap://" + host + ":" + port; if (tdn.length() > 0) { - sUrl += "/" + tdn; + sUrl += "/" + LDAPUrl.encode(tdn); } try { _url = new LDAPUrl( sUrl );