From 143c6035144df26b69b7c05735951365b559783c Mon Sep 17 00:00:00 2001 From: Osiris Team Date: Mon, 26 Feb 2024 17:20:01 +0100 Subject: [PATCH] 7.5.12 - fix early access builds / betas like version 21 not getting fetched --- pom.xml | 2 +- .../osiris/autoplug/client/tasks/updater/java/AdoptV3API.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index b073f8cf..7161c192 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.osiris.autoplug.client autoplug-client - 7.5.11 + 7.5.12 jar AutoPlug-Client diff --git a/src/main/java/com/osiris/autoplug/client/tasks/updater/java/AdoptV3API.java b/src/main/java/com/osiris/autoplug/client/tasks/updater/java/AdoptV3API.java index 30013ab8..8399cba8 100644 --- a/src/main/java/com/osiris/autoplug/client/tasks/updater/java/AdoptV3API.java +++ b/src/main/java/com/osiris/autoplug/client/tasks/updater/java/AdoptV3API.java @@ -43,7 +43,9 @@ public String getVersionInformationUrl(String releaseVersionName, OperatingSyste String jvmImplementation = isHotspotImpl ? "hotspot" : "openj9"; String heapSize = isLargeHeapSize ? "large" : "normal"; return log(START_ASSETS_URL - + "%5B" // [ // Wrap version inside [] (in url encoded format) so that we get an exact match, see: https://maven.apache.org/enforcer/enforcer-rules/versionRanges.html + + "%28%2C" // [ // Wrap version inside (,] (in url encoded format) so that we get an exact match, or older version, see: https://maven.apache.org/enforcer/enforcer-rules/versionRanges.html + // Note that we do not encapsulate in [], since SOMEHOW the provided latest version from the other API endpoint + // does sometimes not exist? + releaseVersionName .replace(".LTS", "") .replace(".EA", "")