[ http://issues.apache.org/jira/browse/JUDDI-41?page=history ]
     
Steve Viens closed JUDDI-41:
----------------------------


Fix has been tested and verified.

> getTModelDetail bug
> -------------------
>
>          Key: JUDDI-41
>          URL: http://issues.apache.org/jira/browse/JUDDI-41
>      Project: jUDDI
>         Type: Bug
>     Versions: 0.9rc3
>     Reporter: Alex
>     Assignee: Steve Viens
>     Priority: Minor
>      Fix For: 0.9

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

-- 
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

Reply via email to