Return-Path: Delivered-To: apmail-ws-axis-cvs-archive@www.apache.org Received: (qmail 3477 invoked from network); 1 Aug 2008 08:01:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Aug 2008 08:01:54 -0000 Received: (qmail 10114 invoked by uid 500); 1 Aug 2008 08:01:53 -0000 Delivered-To: apmail-ws-axis-cvs-archive@ws.apache.org Received: (qmail 9982 invoked by uid 500); 1 Aug 2008 08:01:53 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 9973 invoked by uid 500); 1 Aug 2008 08:01:53 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 9970 invoked by uid 99); 1 Aug 2008 08:01:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Aug 2008 01:01:53 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Aug 2008 08:01:06 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 7A1E9238889F; Fri, 1 Aug 2008 01:01:33 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r681623 - /webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c Date: Fri, 01 Aug 2008 08:01:33 -0000 To: axis2-cvs@ws.apache.org From: manjula@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080801080133.7A1E9238889F@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: manjula Date: Fri Aug 1 01:01:32 2008 New Revision: 681623 URL: http://svn.apache.org/viewvc?rev=681623&view=rev Log: Fixes for AXIS2C-1247. Modified: webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c Modified: webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c?rev=681623&r1=681622&r2=681623&view=diff ============================================================================== --- webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c (original) +++ webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c Fri Aug 1 01:01:32 2008 @@ -583,6 +583,23 @@ mime_parser->soap_body_str = soap_str; mime_parser->soap_body_len = soap_len; + /* There are multipart/related messages which does not contain attachments + * The only mime_part is the soap envelope. So for those messages the mime + * boundary after the soap will end up with -- + * So we will check that here and if we found then the logic inside the + * while loop will not be executed */ + + if(len_array[buf_num] == 2) + { + end_of_mime = (AXIOM_MIME_BOUNDARY_BYTE == *(buf_array[buf_num])) && + (AXIOM_MIME_BOUNDARY_BYTE == *(buf_array[buf_num] + 1)); + if(end_of_mime) + { + AXIS2_FREE(env->allocator, buf_array[buf_num]); + buf_array[buf_num] = NULL; + } + } + /*--MIMEBOUNDARY mime_headr1:....... mime_headr2:....