-
Notifications
You must be signed in to change notification settings - Fork 50
Using a GPG secret key without a private key included causes a NullPointerException when uploading an artifact #94
Comments
Update. This appears to be an issue with GPG keys with subkeys. |
Thanks for the detailed info! I wonder if at some point you removed the master private key from your keyring (like is suggested here: https://wiki.debian.org/Subkeys). Or perhaps gpg requires additional incantations to export the private portion of a master key. As far as why the NPE instead of a meaningful message: this is simply not a case that I've encountered before and didn't realize was possible. This plugin is not a Sonatype product, it's a volunteer effort, so it can definitely lack some of the polish that a commercial product might have. Personally I don't have a great amount of time to devote to this plugin, so I probably won't get around to writing a fix to handle this case in a less confusing way any time soon, but I'm happy to review and merge patches! |
@mpoindexter I'll take a look at the subkeys thing and see what is going on there. We found that we actually didn't need to use it, but I would like to know what is going on there. I fully understand the lack of polish and how only what is currently painful is what bubbles to the top. My team is currently maintaining a couple of Gradle plugins ourselves. I'm going through the hoops on my end to get approval to sign the Sonatype Contributor License Agreement and submit a PR. It should be inbound this week. |
@wdschei do you have any updates on this? |
@macalinao I finally got approval and will be submitting a PR to provide a better message other than the NPE shortly. |
Just passing by ... |
APT is now part of Nexus Repository Manager. Version 3.17.0 includes the APT plugin by default. |
Thanks for creating an issue! Please fill out this form so we can be
sure to have all the information we need, and to minimize back and forth.
What are you trying to do?
Upload an artifact to a new NXRM.
What feature or behavior is this required for?
Using the plugin.
How could we solve this issue? (Not knowing is okay!)
I have no idea what is actually wrong.
Anything else?
I'm standing up a new server hosting a NXRM to serve Debian Apt artifacts and have installed/built everything so far using the basic installs.
I'm using:
Located at:
I have confirmed the NXRM process is using OpenJDK:
I have confirmed the Unlimited JCE is in effect using the methods described here.
Specifically the Gist here
I have confirmed my Secret Key and Passphrase are correct using the method described here.
I received the log messages below after creating an Apt repository named
debian
and trying to upload a file using the UI at:Just to ensure this isn't a UI issue, I used the
curl
example in the README and received:Digging through the stack, I see that the following were hit:
This leads me to believe the private key extracted here was
null
:Which leads me to believe this was returned here.
To confirm this, I applied this patch:
and then received this in the log:
What would cause the extracted private key to be empty?
The text was updated successfully, but these errors were encountered: