What steps will reproduce the problem?
1. In SignaturePolicyVerifier.verify(), the code calls StreamUtils.readWrite()
followed by a close within the same try-catch. This will skip the call to
sigDocStream.close() if the readWrite() throws an exception. A better idiom is
to call sigDocStream.close() in a finally clause. There are examples of this in
xades4j.utils.Base64
What is the expected output? What do you see instead?
The stream obtained from
policyDocumentProvider.getSignaturePolicyDocumentStream(policyId) should be
closed even if reading the stream causes an IO exception.
What version of the product are you using? On what operating system?
1.2.0
Windows 7
Please provide any additional information below.
Original issue reported on code.google.com by clementp...@gmail.com on 14 Nov 2011 at 4:41
Original issue reported on code.google.com by
clementp...@gmail.com
on 14 Nov 2011 at 4:41