Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 10864 invoked from network); 19 Sep 2006 17:29:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Sep 2006 17:29:59 -0000 Received: (qmail 14188 invoked by uid 500); 19 Sep 2006 17:29:59 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 13936 invoked by uid 500); 19 Sep 2006 17:29:59 -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 13924 invoked by uid 99); 19 Sep 2006 17:29:59 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Sep 2006 10:29:58 -0700 Authentication-Results: idunn.apache.osuosl.org header.from=kamaal79@yahoo.com; domainkeys=good X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,FROM_ENDS_IN_NUMS DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from ([206.190.49.76:44962] helo=web53206.mail.yahoo.com) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 03/35-28275-11920154 for ; Tue, 19 Sep 2006 10:29:55 -0700 Received: (qmail 19092 invoked by uid 60001); 19 Sep 2006 17:29:50 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Yc8FZL+V+Mbl16bwYJRIsXqG4y7ae9NDxbN62IFXgPZTwyy4IwdmUBvha0IAEFOR+rTVlwclvgCCy2btiAYm1/vRAY6q4DB/ey5k7u8EeKddNXg85LDj0AlpPbx/a4umUbK2ZdrWeVRKIY3oZlbqs7BC/kgPDvXrqJCn2Fx8XdM= ; Message-ID: <20060919172950.19090.qmail@web53206.mail.yahoo.com> Received: from [207.171.180.101] by web53206.mail.yahoo.com via HTTP; Tue, 19 Sep 2006 10:29:50 PDT Date: Tue, 19 Sep 2006 10:29:50 -0700 (PDT) From: Kamlesh kumar Subject: Re: xsd deserialization for integer types broken To: Apache AXIS C User List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks, that explains why things are done the way it is. However, even toggling won't help in my case since I wany any non-Axis client to be able to send request to my Axis C++ server. I have no guarantee on what the client will be sending and therefore we need to validate during both serializing and deserializing. -Kamlesh --- John Hawkins wrote: > I won't comment on the broken code but I will > comment on the reason why > max and min values on reply msgs aren't validated. > > The view was taken that the server was already going > to do validation and > therefore that the client could have a reasonable > trust in the values > coming across the wire. You can argue either way - > it would be ideal if > someone would write it so that validation could be > toggled - but there > were more important things to do at the time. > > regards, > John. > > > > > > Kamlesh kumar > 18/09/2006 21:30 > Please respond to > "Apache AXIS C User List" > > > > To > axis-c-user@ws.apache.org > cc > > Subject > xsd deserialization for integer types broken > > > > > > > The xsd deserialization for integer types is awfully > broken. > > For instance, calling the getElementAsInt() API for > the XML fragment > > "30a" > > I would have expected it to either return 30 or > ideally throw an exception. Instead, I get a value > of > 300 :( > > Similarly, calling > > "30 " returns a value of 300 ! > > I think the following change might have introduced > this bug. > http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/soap/xsd/Integer.cpp?r1=261408&r2=261497&diff_format=h > > > Further, why aren't we validating against the > maximum > and minimum value for each type ? > > For instance, getElementAsShort() for the XML > fragment > > "32768" returns -1. I would have > expected > AxisC++ to throw an exception saying it exceeds the > max value of short instead of silently returning > wrong > values. > > I am surprised why this bug hasn't been seen till > now. > > Regardless, I think it should be top priority to fix > this issue. > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > axis-c-user-unsubscribe@ws.apache.org > For additional commands, e-mail: > axis-c-user-help@ws.apache.org > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-user-help@ws.apache.org