You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/11/01 06:11:00 UTC

[jira] [Work logged] (CAMEL-14117) Mtom cannot be enabled in CxfEnpoint

     [ https://issues.apache.org/jira/browse/CAMEL-14117?focusedWorklogId=337206&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-337206 ]

ASF GitHub Bot logged work on CAMEL-14117:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 01/Nov/19 06:10
            Start Date: 01/Nov/19 06:10
    Worklog Time Spent: 10m 
      Work Description: Timizki commented on pull request #3306: CAMEL-14117: Removed code block that always disables mtom
URL: https://github.com/apache/camel/pull/3306
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 337206)
    Remaining Estimate: 20m  (was: 0.5h)
            Time Spent: 10m

> Mtom cannot be enabled in CxfEnpoint
> ------------------------------------
>
>                 Key: CAMEL-14117
>                 URL: https://issues.apache.org/jira/browse/CAMEL-14117
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 2.24.2
>         Environment: [^cxf-mtom-tests.zip]
>            Reporter: Timo Paananen
>            Priority: Major
>              Labels: mtom
>         Attachments: cxf-mtom-tests.zip
>
>   Original Estimate: 0.5h
>          Time Spent: 10m
>  Remaining Estimate: 20m
>
> If in Spring Boot application CxfEndpoint bean is created with java configuration and cxfendpoints setMtomEnabled(true) method is used mtom stays disabled.
> This happens also if mtom is enabled through cxfEndpoint.getProperties().put("mtom-enabled", true)
> or by using Camels URI property method to("cxf:bean:myCxfBean?properties.mtom-enabled=true)
> or by using Camels query parameters method to("cxf:bean:myCxfBean?mtomEnabled=true)
>  
> I believe that bug is caused  by lines from 130 to 133 in  org.apache.camel.component.cxf.CxfComponent. This block of code explicitly sets mtom state by using endpoints properties, but the properties are already handled and therefore the properties map is empty and mtom is always disabled.
>  
> I have added maven project that has unit tests for verifying the problem.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)