You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2017/09/06 13:32:00 UTC

[jira] [Resolved] (CXF-7438) Xml validation error with MTOM

     [ https://issues.apache.org/jira/browse/CXF-7438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-7438.
------------------------------
       Resolution: Fixed
         Assignee: Daniel Kulp
    Fix Version/s: 3.1.13
                   3.0.15

> 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
>            Assignee: Daniel Kulp
>            Priority: Minor
>             Fix For: 3.0.15, 3.1.13
>
>
> 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)