From 534b784843d5653b0e1f3dc4cd5a10cf359254f7 Mon Sep 17 00:00:00 2001 From: Dave Hladky Date: Tue, 2 Sep 2014 09:20:49 -0500 Subject: [PATCH] Issue #3564 Allow for un-authenicated WFS HTTPS connections. Change-Id: Ib144a570b2206b336aac0b9e8ebc00c9f096775a Former-commit-id: 82fd7189b992ac387532d0b7a93626c04c7b27e1 [formerly 7afe5332fcf41bbc8bb2411944584405f3ba686a] Former-commit-id: 9c3b002990b18335df1ebbf277b612f2f8f482ed --- .../uf/edex/datadelivery/retrieval/util/WfsConnectionUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/edexOsgi/com.raytheon.uf.edex.datadelivery.retrieval/src/com/raytheon/uf/edex/datadelivery/retrieval/util/WfsConnectionUtil.java b/edexOsgi/com.raytheon.uf.edex.datadelivery.retrieval/src/com/raytheon/uf/edex/datadelivery/retrieval/util/WfsConnectionUtil.java index 88e242cb85..e7af257b4f 100644 --- a/edexOsgi/com.raytheon.uf.edex.datadelivery.retrieval/src/com/raytheon/uf/edex/datadelivery/retrieval/util/WfsConnectionUtil.java +++ b/edexOsgi/com.raytheon.uf.edex.datadelivery.retrieval/src/com/raytheon/uf/edex/datadelivery/retrieval/util/WfsConnectionUtil.java @@ -36,6 +36,7 @@ import com.raytheon.uf.common.status.UFStatus.Priority; * Aug 06, 2013 2097 dhladky WFS 2.0 compliance upgrade and switched to POST * Nov 20, 2013 2554 dhladky Added GZIP capability to WFS requests. * Jan 13, 2014 2697 dhladky Added util to strip unique Id field from URL. + * Aub 20, 2014 3564 dhladky Allow for un-authenicated HTTPS * * * @@ -80,6 +81,7 @@ public class WfsConnectionUtil { ProviderCredentials creds = ProviderCredentialsUtil .retrieveCredentials(providerName); Connection localConnection = creds.getConnection(); + http.setHttpsConfiguration(new WfsHttpsConfiguration(uri)); if (localConnection != null && localConnection.getProviderKey() != null) { @@ -91,7 +93,6 @@ public class WfsConnectionUtil { String password = localConnection.getUnencryptedPassword(); http.setHandler(new WfsCredentialsHandler(userName, password)); - http.setHttpsConfiguration(new WfsHttpsConfiguration(uri)); http.setCredentials(uri.getHost(), uri.getPort(), providerName, userName, password); }