You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by "Kurt T Stam (JIRA)" <ju...@ws.apache.org> on 2010/06/09 19:14:14 UTC
[jira] Commented: (JUDDI-400) findQualifiers are not working
correctly on find_relatedBusiness queries
[ https://issues.apache.org/jira/browse/JUDDI-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12877140#action_12877140 ]
Kurt T Stam commented on JUDDI-400:
-----------------------------------
Hi Jason,
I think your issue here is that you are not finding any matches right? I have set up a very similar unittest set; see API060, testFindNoAssertions and testFindAssertions. In the first test I only added the publisherAssertion from the joepublisher side, and no relatedBusinesses are found since it is only added 'onesided'. For a publisherAssertion to be active *both* publisher need to add it, which is done in the testFindAssertions test. I also added different findQualifiers and a keyedReference; the test still works.
Note that there is TODO comment in there
Please check out the version commits related to this issues. And you can give it a try. If I don't hear from you I will close it out.
Cheers,
--Kurt
> findQualifiers are not working correctly on find_relatedBusiness queries
> ------------------------------------------------------------------------
>
> Key: JUDDI-400
> URL: https://issues.apache.org/jira/browse/JUDDI-400
> Project: jUDDI
> Issue Type: Bug
> Components: core
> Affects Versions: 3.0.2
> Environment: tomcat 6.0.10, PostgreSQL 8.4
> Reporter: Jason Brown
> Assignee: Kurt T Stam
> Fix For: 3.0.3
>
>
> findQualifiers are not working correctly on find_relatedBusiness queries.
> INPUTS:
> save the following businesses:
> <businessEntity businessKey="uddi:businesstest:01">
> <name>businesstest:01</name>
> </businessEntity>
> <businessEntity businessKey="uddi:businesstest:02">
> <name>businesstest:02</name>
> </businessEntity>
> <businessEntity businessKey="uddi:businesstest:03">
> <name>businesstest:03</name>
> </businessEntity>
> save the following publisherAssertions:
> <add_publisherAssertions xmlns="urn:uddi-org:api_v3">
> <publisherAssertion>
> <fromKey>uddi:businesstest:01</fromKey>
> <toKey>uddi:businesstest:02</toKey>
> <keyedReference tModelKey="uddi:uddi.org:relationships" keyName="assertionTesting01" keyValue="parent-child"/>
> </publisherAssertion>
> <publisherAssertion>
> <fromKey>uddi:businesstest:01</fromKey>
> <toKey>uddi:businesstest:03</toKey>
> <keyedReference tModelKey="uddi:uddi.org:relationships" keyName="assertionTesting02" keyValue="parent-child"/>
> </publisherAssertion>
> </add_publisherAssertions>
> perform the following queries:
> <find_relatedBusinesses xmlns="urn:uddi-org:api_v3">
> <findQualifiers>
> <findQualifier>sortByNameDesc</findQualifier>
> </findQualifiers>
> <businessKey>uddi:businesstest:01</businessKey>
> </find_relatedBusinesses>
> (returns keys in ascending order)
> <find_relatedBusinesses xmlns="urn:uddi-org:api_v3">
> <findQualifiers>
> <findQualifier>approximateMatch</findQualifier>
> </findQualifiers>
>
> <businessKey>uddi:businesstest:01</businessKey>
> <keyedReference tModelKey="uddi:uddi.org:relationships" keyName="assertionTesting_1" keyValue="parent-child"/>
> </find_relatedBusinesses>
> (returns nothing)
> <find_relatedBusinesses xmlns="urn:uddi-org:api_v3">
> <findQualifiers>
> <findQualifier>caseInsensitiveMatch</findQualifier>
> </findQualifiers>
>
> <businessKey>uddi:businesstest:01</businessKey>
> <keyedReference tModelKey="uddi:uddi.org:relationships" keyName="assertionTesting01" keyValue="parent-CHILD"/>
> </find_relatedBusinesses>
> (returns nothing)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.