Fixes #20752
This commit is contained in:
parent
a616a97e07
commit
2efb5d0d36
|
@ -4,6 +4,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|||
|
||||
##[v1.3.0-SNAPSHOT] 2020-12-01
|
||||
* Upgraded integration with security layer
|
||||
* Removed http [#20752]
|
||||
|
||||
|
||||
##[v1.2.3] 2020-12-01
|
||||
|
|
|
@ -75,7 +75,7 @@ public class TransfererBuilder {
|
|||
|
||||
if(found.isEmpty()) throw new HostingNodeNotFoundException("No Hosting node with the id "+nodeId);
|
||||
|
||||
return "http://"+found.get(0).profile().description().name();
|
||||
return "https://"+found.get(0).profile().description().name();
|
||||
}
|
||||
|
||||
private static String resolveRedirects(String url) throws IOException{
|
||||
|
|
|
@ -17,7 +17,7 @@ public class Utils {
|
|||
* given timeout, otherwise <code>false</code>.
|
||||
*/
|
||||
public static boolean pingURL(String url, int timeout) {
|
||||
url = url.replaceFirst("^https", "http"); // Otherwise an exception may be thrown on invalid SSL certificates.
|
||||
// url = url.replaceFirst("^https", "http"); // Otherwise an exception may be thrown on invalid SSL certificates.
|
||||
|
||||
try {
|
||||
HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();
|
||||
|
|
|
@ -32,13 +32,13 @@ import org.junit.Test;
|
|||
|
||||
public class TransfererTest {
|
||||
|
||||
static String hostname="http://geoserver1.dev.d4science.org";
|
||||
static String hostname="https://geoserver1.dev.d4science.org";
|
||||
// static String nodeId="462b68c5-463f-4295-86da-37d6c0abc7ea";
|
||||
static String scope="/gcube/devNext/NextNext";
|
||||
|
||||
static DataTransferClient client;
|
||||
|
||||
static String link="http://maven.research-infrastructures.eu/nexus/content/groups/gcube-releases-all/org/gcube/data/transfer/data-transfer-model/1.0.0-3.11.0-128236/data-transfer-model-1.0.0-3.11.0-128236-javadoc.jar";
|
||||
static String link="https://nexus.d4science.org/nexus/content/groups/gcube-releases-all/org/gcube/data/transfer/data-transfer-model/1.0.0-3.11.0-128236/data-transfer-model-1.0.0-3.11.0-128236-javadoc.jar";
|
||||
|
||||
static File tempFile;
|
||||
|
||||
|
|
Loading…
Reference in New Issue