[JIRA] (JMVN-49) Enforcer fails with an NPE if it could not load signature for enforcer-data from maven
Rod Widdowson (Jira)
jira at shibboleth.atlassian.net
Thu Feb 9 11:04:00 UTC 2023
Rod Widdowson ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=59fb32bbc24efb3c4ed3c977 ) *created* an issue
Maven Enforcer ( https://shibboleth.atlassian.net/browse/JMVN?atlOrigin=eyJpIjoiZmU5NzljYzM3ZWIyNDM1OTkyNjYxZjI2MjdmMzYwNzEiLCJwIjoiaiJ9 ) / Bug ( https://shibboleth.atlassian.net/browse/JMVN-49?atlOrigin=eyJpIjoiZmU5NzljYzM3ZWIyNDM1OTkyNjYxZjI2MjdmMzYwNzEiLCJwIjoiaiJ9 ) JMVN-49 ( https://shibboleth.atlassian.net/browse/JMVN-49?atlOrigin=eyJpIjoiZmU5NzljYzM3ZWIyNDM1OTkyNjYxZjI2MjdmMzYwNzEiLCJwIjoiaiJ9 ) Enforcer fails with an NPE if it could not load signature for enforcer-data from maven ( https://shibboleth.atlassian.net/browse/JMVN-49?atlOrigin=eyJpIjoiZmU5NzljYzM3ZWIyNDM1OTkyNjYxZjI2MjdmMzYwNzEiLCJwIjoiaiJ9 )
Issue Type: Bug Affects Versions: 3,1.0, 3.1.1, 3.2.0 Assignee: Rod Widdowson ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=59fb32bbc24efb3c4ed3c977 ) Created: 09/Feb/23 6:03 AM Fix Versions: 3.2.1 Priority: Trivial Reporter: Rod Widdowson ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=59fb32bbc24efb3c4ed3c977 )
what it says. The stack
at net.shibboleth.mvn.enforcer.impl.JarEnforcer.execute (JarEnforcer.java:240)
at org.apache.maven.plugins.enforcer.EnforceMojo.execute (EnforceMojo.java:205)
...
Caused by: java.lang.NullPointerException
at java.io.FileInputStream.<init> (FileInputStream.java:149)
at net.shibboleth.mvn.enforcer.impl.JarEnforcer.getGPGDataClassLoader (JarEnforcer.java:272)
at net.shibboleth.mvn.enforcer.impl.JarEnforcer.execute (JarEnforcer.java:214)
at org.apache.maven.plugins.enforcer.EnforceMojo.execute (EnforceMojo.java:205)
The code:
final File asc = downloadArtifact(dataGroupId, dataArtifactId, dataVersion, "", "jar.asc");
...
final InputStream ascStream = new BufferedInputStream(new FileInputStream(asc));
( https://shibboleth.atlassian.net/browse/JMVN-49#add-comment?atlOrigin=eyJpIjoiZmU5NzljYzM3ZWIyNDM1OTkyNjYxZjI2MjdmMzYwNzEiLCJwIjoiaiJ9 ) Add Comment ( https://shibboleth.atlassian.net/browse/JMVN-49#add-comment?atlOrigin=eyJpIjoiZmU5NzljYzM3ZWIyNDM1OTkyNjYxZjI2MjdmMzYwNzEiLCJwIjoiaiJ9 )
Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100215- sha1:a0f3b6a )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/commits/attachments/20230209/92b14dc8/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-comment-icon-aa1796f0-295f-41ed-bb4a-4447373ef233
Type: image/png
Size: 1084 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20230209/92b14dc8/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-trivial-ea5e3f95-92f7-49c5-84ec-f2a679925f6f
Type: image/png
Size: 446 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20230209/92b14dc8/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-avatar-834a3672-972e-4ee6-99d4-1d3a7c0d3313
Type: image/png
Size: 345 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20230209/92b14dc8/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-footer-desktop-logo-687a07d0-3ccc-42d7-a6e1-5a14bfce0d9b
Type: image/png
Size: 10805 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20230209/92b14dc8/attachment-0007.png>
More information about the commits
mailing list