-
Task
-
Resolution: Done
-
Major
-
None
-
7.11
-
None
-
2021 Week 22-24 (from May 31)
-
1
-
Undefined
DROOLS-6270/RHDM-1692 let BatchExecutionHelperProviderImpl.newXStreamMarshaller() create secure XStream instance. It means the XStream instance accepts only pre-defined kie classes in payloads by default. If users use the XStream instance created in that way, they need to add allowed classes (e.g. domain model classes) in their application code.
for example)
final BatchExecutionHelperProviderImpl batchExecutionHelperProvider = new BatchExecutionHelperProviderImpl(); XStream xstreamMarshaller = batchExecutionHelperProvider.newXStreamMarshaller(); String[] allowList = new String[]{ "org.example.model.Person", "org.example.model.Company" }; xstreamMarshaller.addPermission( new WildcardTypePermission( allowList ) );
Please add it to Release Notes "New Features" chapter.
- is documented by
-
BXMSDOC-7312 Release notes docs for DM and PAM 7.11
- Closed