From e56e332c66aa375969adf90e89f9239263c3bbf5 Mon Sep 17 00:00:00 2001 From: Maria Topchieva Date: Thu, 3 Aug 2023 18:00:51 +0300 Subject: [PATCH] IAC-778 Update release.md and changelog.md files --- CHANGELOG.md | 1 + .../vmware/pscoe/iac/artifact/VroPackageStore.java | 1 - docs/versions/latest/Release.md | 13 +++++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eaa33f15a..af43098f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ### Fixes * [artifact-manager] 148 / vra-ng:pull command failure when import/export tags contains underscore * [maven-plugins] 146 / Pull operations fail on Windows with release 2.34.0 +* [artifact-manager] 778 / Backup only works with current package version, otherwise throws exception 404 not found ## v2.34.0 - 05 Jul 2023 diff --git a/common/artifact-manager/src/main/java/com/vmware/pscoe/iac/artifact/VroPackageStore.java b/common/artifact-manager/src/main/java/com/vmware/pscoe/iac/artifact/VroPackageStore.java index 49f82a2eb..7dc6b9fd5 100644 --- a/common/artifact-manager/src/main/java/com/vmware/pscoe/iac/artifact/VroPackageStore.java +++ b/common/artifact-manager/src/main/java/com/vmware/pscoe/iac/artifact/VroPackageStore.java @@ -20,7 +20,6 @@ import java.nio.file.Paths; import java.text.SimpleDateFormat; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; import java.sql.Timestamp; diff --git a/docs/versions/latest/Release.md b/docs/versions/latest/Release.md index 8727afa23..6653f4519 100644 --- a/docs/versions/latest/Release.md +++ b/docs/versions/latest/Release.md @@ -50,6 +50,19 @@ This is due to PosixPermissions which can be used only with POSIX compatible ope #### New Behavior Using another library for temp dir creation which checks if POSIX is supported. +### Fixed backup of vRO packages so that the highest available version is backed up +#### Previous Behavior + +Back up of vRO packages (using the flag in the environment.properties file: vro_enable_backup=true) +would only work if the currently imported packages (which are to back up), had the same version as the one in vRO. +Otherwise, the import would throw an '404 Not found' exception and break the import process, +due to not finding the same package and version to back up. + +#### New Behavior +Back up of vRO packages now works by: +- backing up the highest available version in vRO of the imported package, +- logging a message that back up is skipped for the package, if no versions of it are found in vRO, continuing with backup of next packages, and the import process. + ## Upgrade procedure [//]: # (Explain in details if something needs to be done)