From: jsimomaa Date: Tue, 9 Jan 2018 14:25:22 +0000 (+0200) Subject: Export auditlogging package & fix server address prefix check X-Git-Tag: v1.43.0~136^2~627 X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=commitdiff_plain;h=5d11e5fb4cbf16686caa91a4ae7df7c1116ee87e Export auditlogging package & fix server address prefix check refs #7684 Change-Id: I8d6cb285256d9fa909cae7c458b04be4290db54a --- diff --git a/bundles/org.simantics.auditlogging/META-INF/MANIFEST.MF b/bundles/org.simantics.auditlogging/META-INF/MANIFEST.MF index 61adfd1f8..9ab486594 100644 --- a/bundles/org.simantics.auditlogging/META-INF/MANIFEST.MF +++ b/bundles/org.simantics.auditlogging/META-INF/MANIFEST.MF @@ -20,3 +20,4 @@ Require-Bundle: org.eclipse.core.runtime, org.glassfish.jersey.core.jersey-common Bundle-RequiredExecutionEnvironment: JavaSE-1.8 Bundle-ActivationPolicy: lazy +Export-Package: org.simantics.audit.server diff --git a/bundles/org.simantics.auditlogging/src/org/simantics/audit/client/AuditLoggingAPIClient.java b/bundles/org.simantics.auditlogging/src/org/simantics/audit/client/AuditLoggingAPIClient.java index 645a60657..6f0ca1fd3 100644 --- a/bundles/org.simantics.auditlogging/src/org/simantics/audit/client/AuditLoggingAPIClient.java +++ b/bundles/org.simantics.auditlogging/src/org/simantics/audit/client/AuditLoggingAPIClient.java @@ -34,7 +34,7 @@ public class AuditLoggingAPIClient { ClientConfig configuration = new ClientConfig(); configuration.register(JacksonFeature.class); httpClient = ClientBuilder.newClient(configuration); - if (!serverAddress.startsWith("http://")) { + if (!serverAddress.startsWith("http://") && !serverAddress.startsWith("https://")) { serverAddress = "http://" + serverAddress; } base = httpClient.target(serverAddress);