https://issues.apache.org/bugzilla/show_bug.cgi?id=49450
Summary: KeyStoreResolver always exhausted after first use
Product: Security
Version: unspecified
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: Encryption
AssignedTo: [email protected]
ReportedBy: [email protected]
Depends on: 49447
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 Bug 49447.
This patch also fixes a bug with the NoSuchElementException that was introduced
in the patch attached to 49447.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.