You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by bu...@apache.org on 2010/06/17 18:23:00 UTC
DO NOT REPLY [Bug 49458] New: StorageResolver always exhausted after
first use
https://issues.apache.org/bugzilla/show_bug.cgi?id=49458
Summary: StorageResolver always exhausted after first use
Product: Security
Version: unspecified
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: Encryption
AssignedTo: security-dev@xml.apache.org
ReportedBy: Clement_Pellerin@ibi.com
Depends on: 49456
Created an attachment (id=25608)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=25608)
source code patch with augmented junit
The StorageResolver 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 iterator
to the beginning, the single iterator instance approach will never
be thread-safe.
To reproduce use the junit in attachment.
The solution is to return a new iterator each time.
Since the methods StorageResolver.hasNext() and StorageResolver.next() cannot
use this solution, they have been marked deprecated.
The KeyResolvers have been changed to call StorageResolver.getIterator()
instead.
This patch assumes the patch in Bug 49456 has already been applied.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 49458] StorageResolver always exhausted after
first use
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49458
Bug 49458 depends on bug 49456, which changed state.
Bug 49456 Summary: StorageResolver.next() gives ClassCastException
https://issues.apache.org/bugzilla/show_bug.cgi?id=49456
What |Old Value |New Value
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 49458] StorageResolver always exhausted after
first use
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49458
coheigea <co...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from coheigea <co...@apache.org> 2010-06-18 07:20:43 EDT ---
Patch applied, thanks.
Colm.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.