juddi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From juddi-...@ws.apache.org
Subject [jira] Resolved: (JUDDI-41) getTModelDetail bug
Date Tue, 19 Oct 2004 17:23:52 GMT
Message:

   The following issue has been resolved as FIXED.

   Resolver: Steve Viens
       Date: Tue, 19 Oct 2004 10:23 AM

Fixed per instructions provided.
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/JUDDI-41

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JUDDI-41
    Summary: getTModelDetail bug
       Type: Bug

     Status: Resolved
   Priority: Minor
 Resolution: FIXED

    Project: jUDDI
   Fix Fors:
             0.9
   Versions:
             0.9rc3

   Assignee: Steve Viens
   Reporter: Alex

    Created: Mon, 18 Oct 2004 6:35 PM
    Updated: Tue, 19 Oct 2004 10:23 AM

Description:
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. 


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message