Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 83476 invoked from network); 1 Nov 2007 06:40:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Nov 2007 06:40:18 -0000 Received: (qmail 83781 invoked by uid 500); 1 Nov 2007 06:40:06 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 83769 invoked by uid 500); 1 Nov 2007 06:40:06 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 83750 invoked by uid 99); 1 Nov 2007 06:40:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2007 23:40:06 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.68.5.9] (HELO relay00.pair.com) (209.68.5.9) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 01 Nov 2007 06:40:07 +0000 Received: (qmail 84740 invoked from network); 1 Nov 2007 06:39:41 -0000 Received: from unknown (HELO ?10.100.1.163?) (unknown) by unknown with SMTP; 1 Nov 2007 06:39:41 -0000 X-pair-Authenticated: 123.231.23.58 Message-ID: <472974EF.3090003@wso2.com> Date: Thu, 01 Nov 2007 12:10:47 +0530 From: Kaushalye Kapuruge User-Agent: Thunderbird 1.5.0.4 (X11/20060713) MIME-Version: 1.0 To: Apache AXIS C User List Subject: Re: issue 731 - please have a look References: <471A0729.7030309@9elements.com> <471D7129.6050803@wso2.com> <471DA9E9.6020100@wso2.com> <471DC2FF.1090107@wso2.com> <489947c0710250643we9ab528xf9d8a7f49c1d239d@mail.gmail.com> In-Reply-To: <489947c0710250643we9ab528xf9d8a7f49c1d239d@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Subra and others, I've committed the new code to calculate the base64_decode_len. Please find the JIRA here[1] The code works fine. And Manjula has done successful interop tests using the new code. You can use following to calculate the decoded length of a char buff. Let us know if you are still experiencing the problem. int axutil_base64_decode_len( const char *bufcoded) Cheers, Kaushalye [1]https://issues.apache.org/jira/browse/AXIS2C-731 Subra A Narayanan wrote: > Hello, > > So what is the proposed solution to this problem? Is the code going to > be changed so that apr_base64_decode_len() always returns the correct > length or should developers use [axutil/apr]_base64_decode() to get > the exact length? > > I use the apr_base64_decode_len() function to allocate memory for > attachment recvd via the webservice and that introduces garbage > characters in the end as the len function always returns a value > greates than the actual length. > > Subra > > On 10/23/07, *Dumindu Pallewela* > wrote: > > Kaushalye Kapuruge wrote: > > Samisa Abeysinghe wrote: > >> Mark N��ler wrote: > >>> hello users, > >>> > >>> on 26.09.2007 Royston Day found an issue, > >>> i just correct my svn-code localy. > >>> > >>> Can someone have a look - 4 me Royston is > >>> right. > >>> > >>> https://issues.apache.org/jira/browse/AXIS2C-731 > > >> I think Rampart folks uses base64 encoding. Can someone using > rampart > >> please verify that the proposed code it correct. > >> > > I tried with the new code and it worked fine for all the > scenarios in > > Rampart/C. But I'm concerned about the interoperability. So it's too > > early to say that new implementation is correct unless it is > > inter-operable with other implementations. I'll update on that > later. > > axutil_base64_decode_len() is the same implementation as that of the > apr_base64_decode_len() found in libapr. AFAIK, this does not > returns the exact decoded length of the encoded string, but returns > at least as many number of bytes that is necessary. Exact length > is anyway returned by the [axutil/apr]_base64_decode(). > > Thus, if the length returned from the proposed code is correct, > there should be no problems with interoperability. > > -Dumindu. > > -- > Dumindu Pallewela > http://blog.dumindu.com > GPG ID: 0x9E131672 > > WSO2 | http://wso2.com | "Oxygenating the Web Service Platform" > > > -- http://blog.kaushalye.org/ http://wso2.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-user-help@ws.apache.org