diff --git a/src/main/java/com/axonivy/market/service/impl/VersionServiceImpl.java b/src/main/java/com/axonivy/market/service/impl/VersionServiceImpl.java index f1aeaba06..36988dcea 100644 --- a/src/main/java/com/axonivy/market/service/impl/VersionServiceImpl.java +++ b/src/main/java/com/axonivy/market/service/impl/VersionServiceImpl.java @@ -210,7 +210,7 @@ public boolean isOfficialVersionOrUnReleasedDevVersion(List versions, St } else { bugfixVersion = getBugfixVersion(version.split(MavenConstants.SPRINT_RELEASE_POSTFIX)[0]); } - return versions.stream().noneMatch(currentVersion -> !currentVersion.equals(version) + return versions.stream().noneMatch(currentVersion -> !currentVersion.equals(version) && isReleasedVersion(currentVersion) && getBugfixVersion(currentVersion).equals(bugfixVersion)); }