You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2014/04/22 11:40:14 UTC
[jira] [Updated] (SANTUARIO-383) NPE in DOMXMLSignature
[ https://issues.apache.org/jira/browse/SANTUARIO-383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Colm O hEigeartaigh updated SANTUARIO-383:
------------------------------------------
Fix Version/s: Java 1.5.7
Java 2.0.0
> NPE in DOMXMLSignature
> ----------------------
>
> Key: SANTUARIO-383
> URL: https://issues.apache.org/jira/browse/SANTUARIO-383
> Project: Santuario
> Issue Type: Bug
> Affects Versions: Java 1.5.6
> Reporter: Frank Cornelis
> Assignee: Colm O hEigeartaigh
> Fix For: Java 2.0.0, Java 1.5.7
>
>
> DOMXMLSignature.validate is doing:
> {code}
> ksResult = validateContext.getKeySelector().select
> (ki, KeySelector.Purpose.VERIFY, sm, validateContext);
> validationKey = ksResult.getKey();
> {code}
> this while the javadoc on KeySelector states:
> {quote}
> Note that an inability to find a key is not considered an exception (null should be returned in that case).
> {quote}
> Hence you can get an NPE.
--
This message was sent by Atlassian JIRA
(v6.2#6252)