axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nadir Amra <a...@us.ibm.com>
Subject Re: Axis 1.6b C++ --- Bug in QName.cpp
Date Tue, 05 Dec 2006 04:05:36 GMT
Yes, I do see the code problem, was just wondering how it would manifest 
itself in a real test scenario - instead of me having to figure it out :-)

So s simple wsdl file would be helpful.  But in anycase I will fix it.

Nadir K. Amra


Nadir Amra/Rochester/IBM@IBMUS wrote on 12/04/2006 09:32:35 PM:

> Can you give a sample wsdl file that shows the problem?
> 
> Nadir K. Amra
> 
> "Chinmoy Bhattacharjee" <chinmoy.bhattacharjee@gmail.com> wrote on 
> 12/04/2006 08:05:26 PM:
> 
> > Hi,
> > 
> > This looks like a bug in src/xml/QName.cpp
> > 
> > Notice the code below :-
> > 
> > void
> > QName::splitQNameString(const XML_Ch* qname, XML_Ch sep)
> > {
> >     XML_Ch *p = const_cast<XML_Ch*>(qname);
> >     while (*p)
> >     {
> >         if (*p == sep)
> >         {
> >             *p = '\0'; /* put null to separate local name from 
namespace 
> */ 
> >             localname = ++p; /* now p points to localpart */
> >             uri = qname; /* qname points to uri */
> >             //  -------------- There should be a return here ??? 
> > ---------------------------
> >         }
> >         p++;
> >     }
> >     /* if there is no separator that means there is no uri */
> >     localname = qname; 
> >     uri = 0; /* no uri */
> > }
> > 
> > Even if a separator exists, there is no return call from the loop. 
> > Hence, the end result will always set the localname to the URI 
> > portion. The URL will always be NULL.
> > 
> > I am not sure what the mergeQNameString is expected to do in the 
> > face of the current situation.
> > 
> > Since this methods are used in determining the size of array 
> > structures - array data types do not work.
> > 
> > - Chinmoy
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Mime
View raw message