You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2026/03/31 17:44:00 UTC
[jira] [Commented] (NIFI-15771) Fix NPE in StandardPGPPrivateKeyService when keyring contains keys with different passphrases
[ https://issues.apache.org/jira/browse/NIFI-15771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18070013#comment-18070013 ]
ASF subversion and git services commented on NIFI-15771:
--------------------------------------------------------
Commit de641a96adc9dcdec8db6124ae603a1518d361a5 in nifi's branch refs/heads/main from David Handermann
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=de641a96adc ]
NIFI-15771 Fixed checking empty Private Key for PGP Secret Key (#11084)
> Fix NPE in StandardPGPPrivateKeyService when keyring contains keys with different passphrases
> ---------------------------------------------------------------------------------------------
>
> Key: NIFI-15771
> URL: https://issues.apache.org/jira/browse/NIFI-15771
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Pierre Villard
> Assignee: Pierre Villard
> Priority: Major
> Time Spent: 40m
> Remaining Estimate: 0h
>
> When a PGP keyring file contains multiple private key entries protected with different passphrases, extractPrivateKey() returns null for entries that don't match the configured password. The code calls getKeyID() on the null result without a null check, causing an NPE that fails the entire service with "Reading Private Keys Failed".
--
This message was sent by Atlassian Jira
(v8.20.10#820010)