This is an automated email from the ASF dual-hosted git repository.

mweiler pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-runtimes.git


The following commit(s) were added to refs/heads/main by this push:
     new 1883b84264 [incubator-kie-issues#2165] Make DocumentBuilderFactory 
namespace aware for proper rendering of the annotated svg image (#4116)
1883b84264 is described below

commit 1883b84264f6cb43aa9368b4542fb98696de5fbe
Author: Martin Weiler <[email protected]>
AuthorDate: Thu Nov 6 06:41:26 2025 -0700

    [incubator-kie-issues#2165] Make DocumentBuilderFactory namespace aware for 
proper rendering of the annotated svg image (#4116)
---
 .../process-svg/src/main/java/org/kie/kogito/svg/SVGImageProcessor.java  | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/addons/common/process-svg/src/main/java/org/kie/kogito/svg/SVGImageProcessor.java
 
b/addons/common/process-svg/src/main/java/org/kie/kogito/svg/SVGImageProcessor.java
index 738c348419..ea53e4a8dd 100644
--- 
a/addons/common/process-svg/src/main/java/org/kie/kogito/svg/SVGImageProcessor.java
+++ 
b/addons/common/process-svg/src/main/java/org/kie/kogito/svg/SVGImageProcessor.java
@@ -53,6 +53,7 @@ public class SVGImageProcessor {
             // or disable entity expansion but keep in mind that this doesn't 
prevent fetching external entities
             // and this solution is not correct for OpenJDK < 13 due to a bug: 
https://bugs.openjdk.java.net/browse/JDK-8206132
             factory.setExpandEntityReferences(false);
+            factory.setNamespaceAware(true);
 
             DocumentBuilder builder = factory.newDocumentBuilder();
             Document doc = builder.parse(svg);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to