From e85b667998775ba55f9290ec736c274e869ad61b Mon Sep 17 00:00:00 2001 From: Mark Reynolds Date: Wed, 27 Aug 2014 10:47:30 -0400 Subject: [PATCH] Ticket 47480 - Admin Console "server restart dialog" disppears after clicking OK Bug Description: The admin console disappears when trying to restart the config DS, only when the admin URL is missing the protocol (http://, etc) Fix Description: If the admin url is missing the protocol, then add "http://" by default. https://fedorahosted.org/389/ticket/47480 Reviewed by: ? --- src/com/netscape/management/client/console/LoginDialog.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/netscape/management/client/console/LoginDialog.java b/src/com/netscape/management/client/console/LoginDialog.java index ebefb9e..8f2ea5f 100644 --- a/src/com/netscape/management/client/console/LoginDialog.java +++ b/src/com/netscape/management/client/console/LoginDialog.java @@ -207,6 +207,8 @@ SuiConstants { result = _urlField.getSelectedItem(); if(result == null) return ""; + if(!((String)result).startsWith("http://") && !((String)result).startsWith("https://")) + result = "http://" + result; return (String)result; } -- 1.9.3