[java-identity-provider] branch main updated: IDP-2145 Installer should bypass key creation and metadata creation on upgrades
Rod Widdowson
rdw at steadingsoftware.com
Thu Jul 20 10:28:40 UTC 2023
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch main
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=cc575dc474d4b578dde20cbc1f846490e5851f9f
The following commit(s) were added to refs/heads/main by this push:
new cc575dc47 IDP-2145 Installer should bypass key creation and metadata creation on upgrades
cc575dc47 is described below
commit cc575dc474d4b578dde20cbc1f846490e5851f9f
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Thu Jul 20 11:22:40 2023 +0100
IDP-2145 Installer should bypass key creation and metadata creation on upgrades
https://shibboleth.atlassian.net/browse/IDP-2145
Do not try to generate metadata on an update
---
.../src/main/java/net/shibboleth/idp/installer/impl/V5Install.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/idp-installer/src/main/java/net/shibboleth/idp/installer/impl/V5Install.java b/idp-installer/src/main/java/net/shibboleth/idp/installer/impl/V5Install.java
index cdec6b6cf..7c448fcd1 100644
--- a/idp-installer/src/main/java/net/shibboleth/idp/installer/impl/V5Install.java
+++ b/idp-installer/src/main/java/net/shibboleth/idp/installer/impl/V5Install.java
@@ -459,6 +459,11 @@ public class V5Install {
*/
protected void generateMetadata() throws BuildException {
+ if (currentState.getInstalledVersion() != null) {
+ log.debug("Skipping Metadata generation on update from version {}", currentState.getInstalledVersion() );
+ return;
+ }
+
final Path parentDir = installerProps.getTargetDir().resolve("metadata");
final File metadataFile = parentDir.resolve("idp-metadata.xml").toFile();
assert metadataFile != null;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list