Skip to content

AbstractMarshaller should avoid SAXSource workaround when processExternalEntities=true [SPR-11737] #16359

@spring-projects-issues

Description

@spring-projects-issues

Muminur Choudhury opened SPR-11737 and commented

We are currently using spring 4.0.1.

Updated to 4.0.2 (also tried latest 4.0.3) , got unexpected unmarshalling issues with XMLBeansMarshaller for any XSD that uses the "extension" element.

Work-round we had to apply :

XmlBeansMarshaller xmlBeansMarshaller = new XmlBeansMarshaller() {            
            // work-round for spring 4.0.2 
            protected Object unmarshalStreamSourceNoExternalEntitities(StreamSource streamSource) throws XmlMappingException, IOException {
                return unmarshalStreamSource(streamSource);
            }
        };


Affects: 3.2.8, 4.0.2

Issue Links:

Backported to: 3.2.9

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions