You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by "Steve Viens (JIRA)" <ju...@ws.apache.org> on 2005/03/16 04:54:27 UTC

[jira] Closed: (JUDDI-33) findTModel returns unexpected results when trying to filter results with categoryBag

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

     Resolution: Fixed
    Fix Version: 0.9

A fix for this was correctly applied for find_business, find_service, find_binding and find_tModel and tested against the HSQLDB database (v1.7.3).

> findTModel returns unexpected results when trying to filter results with categoryBag
> ------------------------------------------------------------------------------------
>
>          Key: JUDDI-33
>          URL: http://issues.apache.org/jira/browse/JUDDI-33
>      Project: jUDDI
>         Type: Bug
>  Environment: Windows 2000 SP4 / jUDDI deployed on Websphere Application Server 5.0.2 and DB2 8 / Publish and inquiry clients based on UDDI4J 2.0
>     Reporter: Christophe Richard
>     Assignee: Steve Viens
>      Fix For: 0.9

>
> I have two tModels published in jUDDI for a single WSDL Interface Document, a portType tModel and a binding tModel according to what is specified in the following OASIS Technical Note: 
> http://www.oasis-open.org/committees/uddi-spec/doc/tn/uddi-spec-tc-tn-wsdl-v200-20031104.htm
> Here are the two tModels registered in jUDDI:
> <tModelDetail generic="2.0" operator="jUDDI.org" xmlns="urn:uddi-org:api_v2">
>  <tModel authorizedName="Christophe Richard" operator="jUDDI.org" tModelKey="uuid:AAF0A750-CC39-11D8-A750-C7C802D7C6AD">
>   <name>IService</name>
>   <overviewDoc>  
>    <overviewURL>http://localhost:9080/test/IService.wsdl</overviewURL>
>   </overviewDoc>
>   <categoryBag>
>    <keyedReference keyName="custom:category" keyValue="" tModelKey="uuid:AA260450-CC39-11D8-8450-EA299CA6BEC2" />
>    <keyedReference keyName="WSDL entity type" keyValue="portType" tModelKey="uuid:6E090AFA-33E5-36EB-81B7-1CA18373F457" />
>    <keyedReference keyName="XML namespace" keyValue="http://testNamespace" tModelKey="uuid:D01987d1-ab2e-3013-9be2-2a66eb99d824" />
>   </categoryBag>
>  </tModel>
> </tModelDetail>
> <tModelDetail generic="2.0" operator="jUDDI.org" xmlns="urn:uddi-org:api_v2">
>  <tModel authorizedName="Christophe Richard" operator="jUDDI.org" tModelKey="uuid:AB2795D0-CC39-11D8-95D0-FAEC5C41EA38">
>   <name>IServiceBinding</name>
>   <overviewDoc>
>    <overviewURL>http://localhost:9080/test/IService.wsdl</overviewURL>
>   </overviewDoc>
>   <categoryBag>
>    <keyedReference keyName="custom:category" keyValue="" tModelKey="uuid:AA260450-CC39-11D8-8450-EA299CA6BEC2" />
>    <keyedReference keyName="WSDL entity type" keyValue="binding" tModelKey="uuid:6E090AFA-33E5-36EB-81B7-1CA18373F457" />
>    <keyedReference keyName="uddi-org:types" keyValue="wsdlSpec" tModelKey="uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4" />
>    <keyedReference keyName="protocol" keyValue="uuid:aa254698-93de-3870-8df3-a5c075d64a0e" tModelKey="uuid:4dc74177-7806-34d9-aecd-33c57dc3a865" />
>    <keyedReference keyName="transport" keyValue="uuid:68DE9E80-AD09-469D-8A37-088422BFBC36" tModelKey="uuid:e5c43936-86e4-37bf-8196-1d04b35c0099" />
>    <keyedReference keyName="WSDL portType reference" keyValue="uuid:AAF0A750-CC39-11D8-A750-C7C802D7C6AD" tModelKey="uuid:082b0851-25d8-303c-b332-f24a6d53e38e" />
>    <keyedReference keyName="XML namespace" keyValue="http://testNamespace" tModelKey="uuid:D01987d1-ab2e-3013-9be2-2a66eb99d824" />
>   </categoryBag> 
>  </tModel>
> </tModelDetail>
> When trying to retrieve only the portType tModel through a findTModel call that should filter only portType tModels, jUDDI returns both portType and binding tModels as shown below:
> Query:
> <find_tModel generic="2.0" maxRows="2147483647" xmlns="urn:uddi-org:api_v2">
>  <categoryBag>
>   <keyedReference keyName="custom:category" tModelKey="uuid:AA260450-CC39-11D8-8450-EA299CA6BEC2"></keyedReference>
>   <keyedReference keyName="WSDL entity type" keyValue="portType" tModelKey="uuid:6E090AFA-33E5-36EB-81B7-1CA18373F457"></keyedReference>
>  </categoryBag>
> </find_tModel>
> Result:
> <tModelList generic="2.0" operator="jUDDI.org" xmlns="urn:uddi-org:api_v2">
>  <tModelInfos>
>   <tModelInfo tModelKey="uuid:AAF0A750-CC39-11D8-A750-C7C802D7C6AD">
>    <name>IService</name>
>   </tModelInfo>
>   <tModelInfo tModelKey="uuid:AB2795D0-CC39-11D8-95D0-FAEC5C41EA38">
>    <name>IServiceBinding</name>
>   </tModelInfo>
>  </tModelInfos>
> </tModelList>
> According to UDDI Spec, only the first tModel should be retrieved, since the other tModel contains keyedReference that are different from the ones passed in parameter to the findTModel method through the categoryBag.
> Regards,
> Chris.

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