You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by co...@apache.org on 2020/11/09 07:38:43 UTC
[santuario-xml-security-java] branch reference_inputstream created
(now bc7f5b7)
This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a change to branch reference_inputstream
in repository https://gitbox.apache.org/repos/asf/santuario-xml-security-java.git.
at bc7f5b7 Close the Reference InputStream after it's read
This branch includes the following new commits:
new bc7f5b7 Close the Reference InputStream after it's read
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[santuario-xml-security-java] 01/01: Close the Reference
InputStream after it's read
Posted by co...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch reference_inputstream
in repository https://gitbox.apache.org/repos/asf/santuario-xml-security-java.git
commit bc7f5b72e1cda12ef1fc3937eff169f224a48a62
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Mon Nov 9 07:38:13 2020 +0000
Close the Reference InputStream after it's read
---
src/main/java/org/apache/jcp/xml/dsig/internal/dom/DOMReference.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/main/java/org/apache/jcp/xml/dsig/internal/dom/DOMReference.java b/src/main/java/org/apache/jcp/xml/dsig/internal/dom/DOMReference.java
index 5292e56..c689ba8 100644
--- a/src/main/java/org/apache/jcp/xml/dsig/internal/dom/DOMReference.java
+++ b/src/main/java/org/apache/jcp/xml/dsig/internal/dom/DOMReference.java
@@ -526,6 +526,10 @@ public final class DOMReference extends DOMStructure
} else {
xi.updateOutputStream(os);
}
+
+ if (xi.getOctetStreamReal() != null) {
+ xi.getOctetStreamReal().close();
+ }
} else {
LOG.warn("The input bytes to the digest operation are null. " +
"This may be due to a problem with the Reference URI " +