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

Robert Lazarski resolved AXIS2C-1404.
-------------------------------------
    Fix Version/s: 2.0.0
       Resolution: Fixed

    The CGI transport was not handling MTOM (Message Transmission Optimization
    Mechanism) responses, which are used for binary attachments in SOAP 
messages.
    
    Changes:
    - Add MTOM response handling with chunked transfer encoding
    - Check for mime_parts in response message context
    - Use axutil_http_chunked_stream for MTOM data output
    - Support MTOM sending callback for custom attachment handling
    - Fix content-length to -1 for unknown/chunked transfers
    - Replace hardcoded "\r\n" with AXIS2_CRLF macro for consistency
    - Add proper cleanup of chunked stream resources
    - Replace fprintf debug statements with AXIS2_LOG macros
    
    Based on patch from AXIS2C-1404 JIRA issue, updated for current codebase.


> MTOM does not work with CGI installation of Axis
> ------------------------------------------------
>
>                 Key: AXIS2C-1404
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1404
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: mtom
>         Environment: $ uname -a
> Linux <hostname> 2.6.18-8.el5 #1 SMP Thu Mar 15 19:46:53 EDT 2007 x86_64 
> x86_64 x86_64 GNU/Linux
> $ gcc --version
> gcc (GCC) 4.2.2
> Copyright (C) 2007 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> $ ld --version
> GNU ld version 2.17.50.0.6-2.el5 20061020
> Copyright 2005 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under the terms of
> the GNU General Public License.  This program has absolutely no warranty.
>            Reporter: Russell Tempero
>            Priority: Major
>              Labels: patch
>             Fix For: 2.0.0
>
>         Attachments: axis2_cgi_main.c.diff
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> When using the the CGI version of Axis, a web service is able to neither 
> receive requests with MTOM attachments nor send responses with said 
> attachments. The process crashes in either case.
> I have attached a fix that allows messages with MTOM attachments to be both 
> sent and received from an Axis2 CGI process. Note that the attached fix works 
> for our current setup and may not take other configurations into account. It 
> is recommended that further investigation be made to ensure that the fix 
> works for all cases.
> The first part of the attached patch allows for the receipt of chunked 
> transfer-encoding HTTP messages. This is not a necessity for MTOM, but is 
> very helpful. The rest of the patch allows MTOM messages to be sent back out.
> Let me know if there are any questions or concerns or I if I can further 
> assist in any way.
> Thanks,
> Russell



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to