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:06:11 UTC

[jira] Updated: (SANTUARIO-223) KeyStoreResolver always exhausted after first use

     [ https://issues.apache.org/jira/browse/SANTUARIO-223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colm O hEigeartaigh updated SANTUARIO-223:
------------------------------------------

    Fix Version/s: Java 1.4.4
         Assignee:     (was: XML Security Developers Mailing List)

> KeyStoreResolver always exhausted after first use
> -------------------------------------------------
>
>                 Key: SANTUARIO-223
>                 URL: https://issues.apache.org/jira/browse/SANTUARIO-223
>             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
>
>
> The KeyStoreResolver creates an iterator once and always returns the same iterator afterwards. After the iterator is traversed once, it will always appear empty. Even if the implementation would be changed to reset the alias enumeration to the beginning, the single iterator instance approach will never be thread-safe.
> To reproduce, run the KeyStoreResolverTest in attachment.
> The solution is to return a new iterator instance each time.
> This patch is built on top of the patch found in SANTUARIO-222.
> This patch also fixes a bug with the NoSuchElementException that was introduced in the patch attached to 49447.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.