juddi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Viens" <st...@viens.net>
Subject RE: getTModelDetail bug
Date Mon, 18 Oct 2004 12:12:01 GMT
Thanks Alex, 

If you could would you mind submitting this to the jUDDI bug tracker?
I'll take a look today and apply this fix. 

http://ws.apache.org/juddi/bugs.html

Steve

-----Original Message-----
From: Alex Chen [mailto:alex.chen@iona.com] 
Sent: Sunday, October 17, 2004 10:08 PM
To: juddi-dev@ws.apache.org
Cc: Liu, Jervis
Subject: getTModelDetail bug

Hi all:

    There's a bug in getTModelDetail UDDI operation, it's in the 
org.apache.juddi.datastore.jdbc.JDBCDataStore class's fetchTModel 
method, when fech the TModel's IdentifierBag the code should be:

  Vector idVector = TModelIdentifierTable.select(tModelKey,connection);
  if (idVector != null && idVector.size() != 0)
    {
      IdentifierBag idBag = new IdentifierBag();
      idBag.setKeyedReferenceVector(idVector);
      tModel.setIdentifierBag(idBag);
    }

but the original code is:

Vector idVector = TModelIdentifierTable.select(tModelKey,connection);
if (idVector != null)
   {
     IdentifierBag idBag = new IdentifierBag();
     idBag.setKeyedReferenceVector(idVector);
     tModel.setIdentifierBag(idBag);
   }

it doesn't follow the UDDI.xsd when retured to client side and will 
cause a exception.

thx.

Alex



Mime
View raw message