Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
rsa-1.14.0
-
None
Description
When an ImportRegistration is closed, all other methods must return null. Obtaining for instance the ImportReference after close is therefor not possible and the associated getter is expected to return null.
The current importer logic appears to assume that at least the ImportReference can always be obtained. This holds true when assuming that only a single thread performs the import task, however de current implementation uses up to 10 Threads. In that case whilst one Thread is busy closing an ImportRegistration, another may already have the reference to it and without the check for null will run into a NPE.
Note that apparently the Apache Aries RSA implementation does not have ImportRegistration.getImportReference() return null after close, which is I guess the reason why this has gone unnoticed. Looking at the spec this in itself should also be considered a bug.
Attachments
Issue Links
- links to