Description
We use the spring-framework restclient and with the change from spring-boot 3.4.3 to spring-boot 3.4.4 (spring-framework 6.2.3 and 6.2.5 as dependencies) we see that the jaxb unmarshaller which we set with the MarshallingHttpMessageConverter does not work the same. With that change the xml is no longer unmarshalled against the xsd but against the class, despited the fact that we have set xsd.
Our xsd has restrictions on string lengths, the generated class from the xsd does not have those restrictions. So when we unmarshal the xml agianst the xsd it fails and against the class it will succeed.
In spring-boot 3.4.3 the check was done against the xsd and from spring-boot 3.4.4 and higher the xsd is no longer checked.
Workaround could be something as described in the issue #34745. But that workaround only describes the class and not the xsd to unmarshall.