[java-identity-provider] branch main updated: IDP-2169 Remove support for zip archived plugins

Rod Widdowson rdw at steadingsoftware.com
Sat Sep 2 13:10:00 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=b6a319633fee31372a42a828ed428cd272a9d063

The following commit(s) were added to refs/heads/main by this push:
     new b6a319633 IDP-2169 Remove support for zip archived plugins
b6a319633 is described below

commit b6a319633fee31372a42a828ed428cd272a9d063
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Sat Sep 2 14:09:05 2023 +0100

    IDP-2169 Remove support for zip archived plugins
    
    https://shibboleth.atlassian.net/browse/IDP-2169
    
    Deprecate warn on installing using a zip file.
---
 .../java/net/shibboleth/idp/installer/plugin/impl/PluginInstaller.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/idp-installer/src/main/java/net/shibboleth/idp/installer/plugin/impl/PluginInstaller.java b/idp-installer/src/main/java/net/shibboleth/idp/installer/plugin/impl/PluginInstaller.java
index f80295ddd..289b597d8 100644
--- a/idp-installer/src/main/java/net/shibboleth/idp/installer/plugin/impl/PluginInstaller.java
+++ b/idp-installer/src/main/java/net/shibboleth/idp/installer/plugin/impl/PluginInstaller.java
@@ -80,6 +80,8 @@ import net.shibboleth.shared.component.AbstractInitializableComponent;
 import net.shibboleth.shared.component.ComponentInitializationException;
 import net.shibboleth.shared.logic.Constraint;
 import net.shibboleth.shared.logic.PredicateSupport;
+import net.shibboleth.shared.primitive.DeprecationSupport;
+import net.shibboleth.shared.primitive.DeprecationSupport.ObjectType;
 import net.shibboleth.shared.primitive.LoggerFactory;
 import net.shibboleth.shared.primitive.StringSupport;
 import net.shibboleth.shared.spring.httpclient.resource.HTTPResource;
@@ -829,6 +831,7 @@ public final class PluginInstaller extends AbstractInitializableComponent implem
             throws IOException {
         final InputStream inStream = new BufferedInputStream(new FileInputStream(fullName.toFile()));
         if (isZip) {
+            DeprecationSupport.warnOnce(ObjectType.CLI_OPTION, "zip Plugin Distributions", null, "tar.gz distribution");
             return new ZipArchiveInputStream(inStream);
         }
         return new TarArchiveInputStream(new GzipCompressorInputStream(inStream));

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list