-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
Nicolas Roussel opened BATCH-2708 and commented
Hi,
When using a XStreamMarshaller with spring batch, I get the following message: 'Security framework of XStream not initialized, XStream is probably vulnerable.'
I've set a 'major' priority because the Security Framework was introduced with XStream 1.4.7, and it will be mandatory with XStream 1.5.0. (According to https://groups.google.com/forum/#!topic/xstream-user/wiKfdJPL8aY)
The problem is that we can't set the security properties inside the @Bean
definition of XStreamMarshaller. Indeed, for now, to do that we need to get the XStream object with the getXStream() method. But XStreamMarshaller always instantiates a new xstream object in the afterPropertiesSet method.
By the way, the setSupportedClasses method is only used on marshalling: StaxEventItemReader doesn't care about supported classes. Is it on purpose?
Here's a link where I posted my original problem: https://stackoverflow.com/questions/49450397/vulnerability-warning-with-xstreammarshaller/49627612#49627612
Nicolas
Reference URL: https://stackoverflow.com/questions/49450397/vulnerability-warning-with-xstreammarshaller/49627612#49627612
Issue Links:
- BATCH-2638 Allow Secure Configuration of XStream