servicemix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Zoppello (JIRA)" <j...@apache.org>
Subject [jira] Created: (SM-1228) MTomCheckInterceptor force attachment writing even if there are no attachments
Date Fri, 15 Feb 2008 15:27:35 GMT
MTomCheckInterceptor force attachment writing even if there are no attachments
------------------------------------------------------------------------------

                 Key: SM-1228
                 URL: https://issues.apache.org/activemq/browse/SM-1228
             Project: ServiceMix
          Issue Type: Bug
          Components: servicemix-cxf-bc
    Affects Versions: 3.2.1
            Reporter: Andrea Zoppello
         Attachments: MtomCheckInterceptor.java

The class org.apache.servicemix.cxfbc.interceptor.MtomCheckInterceptor, check only the properties
mtomEnable to determine if attachments must be written.

The problem is that there are some use case where attachment are only in Soap request, instead
the Soap response must be a plain soap response.

Actually if in the xbean mtomEnabled = true this force, the attachment writes in response,
even if the cxf SOAPMessage object has no attachment.

The solution  is to check if attachments are there before setting the properties to write.

I'va attached a patched version of MtomCheckInterceptor


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message