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

joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/flex-blazeds.git


The following commit(s) were added to refs/heads/develop by this push:
     new e693d09  classic-turnkey-samples-backend: needs customized 
ClassDeserializationValidator or frontend can't send certain types
e693d09 is described below

commit e693d09798581af142e7e0b75fd69f2f1343bbf3
Author: Josh Tynjala <[email protected]>
AuthorDate: Mon Aug 21 09:55:11 2023 -0700

    classic-turnkey-samples-backend: needs customized 
ClassDeserializationValidator or frontend can't send certain types
---
 .../src/main/webapp/WEB-INF/flex/services-config.xml      | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git 
a/samples/classic-turnkey-samples/backend/src/main/webapp/WEB-INF/flex/services-config.xml
 
b/samples/classic-turnkey-samples/backend/src/main/webapp/WEB-INF/flex/services-config.xml
index 13c4069..46514e1 100755
--- 
a/samples/classic-turnkey-samples/backend/src/main/webapp/WEB-INF/flex/services-config.xml
+++ 
b/samples/classic-turnkey-samples/backend/src/main/webapp/WEB-INF/flex/services-config.xml
@@ -113,6 +113,21 @@
 
     </channels>
 
+    <validators>
+        <validator 
class="flex.messaging.validators.ClassDeserializationValidator">
+            <properties>
+                <allow-classes>
+                <class name="flex.samples.dcd.product.Product"/>
+                <class name="flex.samples.product.Product"/>
+                <class name="flex.samples.marketdata.Stock"/>
+                <class name="flex.messaging.messages.*"/>
+                <class name="flex.messaging.io.*"/>
+                <class name="flex.messaging.io.amf.*"/>
+                </allow-classes>
+            </properties>
+        </validator>
+    </validators>
+
     <logging>
         <!-- You may also use flex.messaging.log.ServletLogTarget -->
         <target class="flex.messaging.log.ConsoleTarget" level="Error">

Reply via email to