[java-mvn-enforcer] branch main updated: JMVN-49 Enforcer fails with an NPE if it could not load signature for enforcer-data from maven

Rod Widdowson rdw at steadingsoftware.com
Thu Feb 9 11:29:12 UTC 2023


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch main
in repository java-mvn-enforcer.

View the commit online:
http://git.shibboleth.net/view/?p=java-mvn-enforcer.git;a=commit;h=d628256e88fc8c5fd02a57ebcf00d7a12cdbe3fa

The following commit(s) were added to refs/heads/main by this push:
     new d628256  JMVN-49 Enforcer fails with an NPE if it could not load signature for enforcer-data from maven
d628256 is described below

commit d628256e88fc8c5fd02a57ebcf00d7a12cdbe3fa
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Thu Feb 9 11:28:35 2023 +0000

    JMVN-49 Enforcer fails with an NPE if it could not load signature for enforcer-data from maven
    
    https://shibboleth.atlassian.net/browse/JMVN-49
    
    Cut and paste strikes again
---
 src/main/java/net/shibboleth/mvn/enforcer/impl/JarEnforcer.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/net/shibboleth/mvn/enforcer/impl/JarEnforcer.java b/src/main/java/net/shibboleth/mvn/enforcer/impl/JarEnforcer.java
index acad18a..76e030f 100644
--- a/src/main/java/net/shibboleth/mvn/enforcer/impl/JarEnforcer.java
+++ b/src/main/java/net/shibboleth/mvn/enforcer/impl/JarEnforcer.java
@@ -259,9 +259,9 @@ public class JarEnforcer implements EnforcerRule, MavenLoader{
         }
         if (!isGPGDataASnapshot()) {
             final File asc = downloadArtifact(dataGroupId, dataArtifactId, dataVersion, "", "jar.asc");
-            if (jar == null || !jar.exists()) {
-                log.error("Could not locate data artifact signature for {}:{}:{}", dataGroupId, dataArtifactId, dataVersion);
-                throw new FileNotFoundException("Could not locate data artifact signature");
+            if (asc == null || !asc.exists()) {
+                log.error("Could not locate keyring data artifact signature for {}:{}:{}", dataGroupId, dataArtifactId, dataVersion);
+                throw new FileNotFoundException("Could not locate keyring data artifact signature");
             }
             final File keyRingFile = new File (dataKeyRing);
             if (!keyRingFile.exists()) {

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


More information about the commits mailing list