[
https://issues.apache.org/jira/browse/CXF-7438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16123217#comment-16123217
]
Sergius Mohr commented on CXF-7438:
-----------------------------------
[~dkulp] did already a commit to
[master|https://github.com/apache/cxf/commit/720b41e218cf0b8103b397ff869aa08222cd98d4]
and [3.1.x-fixes
branch|https://github.com/apache/cxf/commit/88c48ed4b6164afbb7cc97c6a8bffc63babcf5af]
my test with 3.1.13-SNAPSHOT was succesful
is it possible to create a new release (3.1.13) within the next days?
> Xml validation error with MTOM
> ------------------------------
>
> Key: CXF-7438
> URL: https://issues.apache.org/jira/browse/CXF-7438
> Project: CXF
> Issue Type: Bug
> Components: JAXB Databinding
> Affects Versions: 3.1.11
> Reporter: Casper Biever
> Priority: Minor
>
> We have an issue similar to CXF-7185 except in our case the cvc-type is
> different. We suggest the following change to DataWriterImpl:
> {code}
> // CXF-1194 and CXF-7438 this hack is specific to MTOM, so pretty safe to
> leave in here before calling the origHandler.
> String msg = event.getMessage();
> if ((msg.startsWith("cvc-type.3.1.2") ||
> msg.startsWith("cvc-complex-type.2.2"))
> && msg.contains(marshaller.getLastMTOMElementName().getLocalPart())) {
> return true;
> }
> {code}
> Our xsd contains this:
> {code:language=xml}
> <xs:complexType name="contentElements">
> <xs:sequence>
> <xs:element name="contentElement" type="xmime:base64Binary"
> maxOccurs="unbounded"/>
> </xs:sequence>
> </xs:complexType>
> {code}
> Without MTOM enabled everything ist fine, with MTOM enabled the error occurs.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)