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

jbonofre pushed a commit to branch activemq-6.1.x
in repository https://gitbox.apache.org/repos/asf/activemq.git


The following commit(s) were added to refs/heads/activemq-6.1.x by this push:
     new 091ed761ff add array type permission to xstream support (#1415)
091ed761ff is described below

commit 091ed761ff192d21f5e75284de0f287e2b6f5f8f
Author: colinwerner <[email protected]>
AuthorDate: Mon May 26 01:36:01 2025 -0700

    add array type permission to xstream support (#1415)
    
    Co-authored-by: colin <[email protected]>
    
    (cherry picked from commit 4acc9d67820018ce1a20975df47c3c5d863fc25a)
---
 .../src/main/java/org/apache/activemq/util/XStreamSupport.java          | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/activemq-client/src/main/java/org/apache/activemq/util/XStreamSupport.java 
b/activemq-client/src/main/java/org/apache/activemq/util/XStreamSupport.java
index 0fe4cfe90f..d6075db260 100644
--- a/activemq-client/src/main/java/org/apache/activemq/util/XStreamSupport.java
+++ b/activemq-client/src/main/java/org/apache/activemq/util/XStreamSupport.java
@@ -18,6 +18,7 @@ package org.apache.activemq.util;
 
 import com.thoughtworks.xstream.XStream;
 import com.thoughtworks.xstream.security.AnyTypePermission;
+import com.thoughtworks.xstream.security.ArrayTypePermission;
 import com.thoughtworks.xstream.security.NoTypePermission;
 import com.thoughtworks.xstream.security.PrimitiveTypePermission;
 import org.apache.activemq.util.ClassLoadingAwareObjectInputStream;
@@ -31,6 +32,7 @@ public class XStreamSupport {
         XStream stream = new XStream();
         stream.addPermission(NoTypePermission.NONE);
         stream.addPermission(PrimitiveTypePermission.PRIMITIVES);
+        stream.addPermission(ArrayTypePermission.ARRAYS);
         stream.allowTypeHierarchy(Collection.class);
         stream.allowTypeHierarchy(Map.class);
         stream.allowTypes(new Class[]{String.class});


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to