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 2010/12/07 13:08:08 UTC
[jira] Updated: (SANTUARIO-222) KeyStoreResolver iterator returns
null for symmetric keys
[ https://issues.apache.org/jira/browse/SANTUARIO-222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Colm O hEigeartaigh updated SANTUARIO-222:
------------------------------------------
Fix Version/s: Java 1.4.4
Assignee: (was: XML Security Developers Mailing List)
> KeyStoreResolver iterator returns null for symmetric keys
> ---------------------------------------------------------
>
> Key: SANTUARIO-222
> URL: https://issues.apache.org/jira/browse/SANTUARIO-222
> Project: Santuario
> Issue Type: Bug
> Components: Java
> Environment: Operating System: Windows NT
> Platform: PC
> Reporter: Clement Pellerin
> Fix For: Java 1.4.4
>
> Attachments: patch.zip
>
>
> Created an attachment (id=25599)
> patch to solve problem including new junit test
> When iterating the certificates in a KeyStoreResolver, the iterator might return null even though hasNext() says there are more elements. This happens because hasNext() only checks if there are more aliases. If the next alias contains a symmetric key, there is no certificate in the KeyStore entry and next() returns null. When you look at the KeyResolvers, they are not prepared to handle a null value, this will cause a NullPointerException.
> To reproduce, use the junit KeyStoreResolverTest in the attachment.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.