diff options
author | vakwetu <vakwetu@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2010-10-14 17:01:54 +0000 |
---|---|---|
committer | vakwetu <vakwetu@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2010-10-14 17:01:54 +0000 |
commit | e7414ef11ff25e975984457f8580f9367760a8da (patch) | |
tree | 21689967c3deaa2fe25dee52d033622e6423f7e9 /pki/base | |
parent | e3f82ad1b9f2a0c83c48381b742a1fc17e41ad6a (diff) | |
download | pki-e7414ef11ff25e975984457f8580f9367760a8da.tar.gz pki-e7414ef11ff25e975984457f8580f9367760a8da.tar.xz pki-e7414ef11ff25e975984457f8580f9367760a8da.zip |
Bugzilla BZ# 643053 - pkisilent DRM configuration fails
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1351 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base')
-rw-r--r-- | pki/base/silent/src/drm/ConfigureDRM.java | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/pki/base/silent/src/drm/ConfigureDRM.java b/pki/base/silent/src/drm/ConfigureDRM.java index 112d0c7a0..96d48b169 100644 --- a/pki/base/silent/src/drm/ConfigureDRM.java +++ b/pki/base/silent/src/drm/ConfigureDRM.java @@ -338,16 +338,18 @@ public class ConfigureDRM hr = hc.sslConnect(cs_hostname,cs_port,wizard_uri, query_string_2); - // parse urls - urls = hr.getHTML(); - int indx = urls.indexOf(clone_uri); - if (indx < 0) { - throw new Exception("Invalid clone_uri"); - } - urls = urls.substring(urls.lastIndexOf("<option" , indx), indx); - urls = urls.split("\"")[1]; + if (clone) { + // parse urls + urls = hr.getHTML(); + int indx = urls.indexOf(clone_uri); + if (indx < 0) { + throw new Exception("Invalid clone_uri"); + } + urls = urls.substring(urls.lastIndexOf("<option" , indx), indx); + urls = urls.split("\"")[1]; - System.out.println("urls =" + urls); + System.out.println("urls =" + urls); + } return true; } catch (Exception e) { |