[
https://issues.apache.org/jira/browse/JUDDI-390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12864319#action_12864319
]
Kurt T Stam commented on JUDDI-390:
-----------------------------------
Hi Jason,
I cannot reproduce it. In fact we have a unit test (API060) that does just
this. To double check I used soapUI and send in:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:urn="urn:uddi-org:api_v3" xmlns:xd="http://www.w3.org/2000/09/xmldsig#">
<soapenv:Header/>
<soapenv:Body>
<urn:save_business>
<!--Optional:-->
<urn:authInfo>authtoken:9712bd3b-0b48-4a3a-9a97-ecac8194e777</urn:authInfo>
<!--1 or more repetitions:-->
<urn:businessEntity businessKey="uddi:juddi.apache.org:businesses-1" >
<urn:name>business1</urn:name>
</urn:businessEntity>
</urn:save_business>
</soapenv:Body>
</soapenv:Envelope>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:urn="urn:uddi-org:api_v3" xmlns:xd="http://www.w3.org/2000/09/xmldsig#">
<soapenv:Header/>
<soapenv:Body>
<urn:save_business>
<!--Optional:-->
<urn:authInfo>authtoken:9712bd3b-0b48-4a3a-9a97-ecac8194e777</urn:authInfo>
<!--1 or more repetitions:-->
<urn:businessEntity businessKey="uddi:juddi.apache.org:businesses-2" >
<urn:name>business2</urn:name>
</urn:businessEntity>
</urn:save_business>
</soapenv:Body>
</soapenv:Envelope>
and then
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:urn="urn:uddi-org:api_v3" xmlns:xd="http://www.w3.org/2000/09/xmldsig#">
<soapenv:Header/>
<soapenv:Body>
<urn:add_publisherAssertions>
<!--Optional:-->
<urn:authInfo>authtoken:9712bd3b-0b48-4a3a-9a97-ecac8194e777</urn:authInfo>
<!--1 or more repetitions:-->
<urn:publisherAssertion>
<urn:fromKey>uddi:juddi.apache.org:businesses-1</urn:fromKey>
<urn:toKey>uddi:juddi.apache.org:businesses-2</urn:toKey>
<urn:keyedReference tModelKey="uddi:uddi.org:relationships"
keyName="Assertion Test" keyValue="parent-child"/>
</urn:publisherAssertion>
</urn:add_publisherAssertions>
</soapenv:Body>
</soapenv:Envelope>
which worked just fine.
> setPublisherAssertions causes Hibernate exception
> -------------------------------------------------
>
> Key: JUDDI-390
> URL: https://issues.apache.org/jira/browse/JUDDI-390
> Project: jUDDI
> Issue Type: Bug
> Components: core
> Affects Versions: 3.0.1
> Environment: Tomcat 6.0.10, PostgreSQL 8.4
> Reporter: Jason Brown
> Assignee: Kurt T Stam
>
> When attempting a set_publisherAssertions call wtih publisherAssertion data
> or an empty body, a SOAP fault indicating Hibernate exception is returned.
> INPUTS:
> the following businesses are saved:
> <save_business xmlns="urn:uddi-org:api_v3"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <businessEntity businessKey="uddi:assertiontest:01">
> <name>uddi:assertiontest:01</name>
> </businessEntity>
> </save_business>
> <save_business xmlns="urn:uddi-org:api_v3"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <businessEntity businessKey="uddi:assertiontest:02">
> <name>uddi:assertiontest:02</name>
> </businessEntity>
> </save_business>
> The following set_publisherAssertions are attempted (fails with SOAP fault
> below for both instances):
> empty body:
> <set_publisherAssertions xmlns="urn:uddi-org:api_v3"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> </set_publisherAssertions>
> with publisherAssertion data:
> <set_publisherAssertions xmlns="urn:uddi-org:api_v3"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="urn:uddi-org:api_v3
> file:/C:/sd-sandbox/sd-devel/misc/xsd/uddi_v3.xsd">
> <authInfo>authtoken:9d92c75f-63b1-4055-8f61-17ff76733b90</authInfo>
> <publisherAssertion>
> <fromKey>uddi:assertiontest:01</fromKey>
> <toKey>uddi:assertiontest:02</toKey>
> <keyedReference tModelKey="uddi:uddi.org:relationships"
> keyName="Assertion Test" keyValue="parent-child"/>
> </publisherAssertion>
> </set_publisherAssertions>
> The following SOAP fault is returned:
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Body>
> <soap:Fault>
> <faultcode>soap:Server</faultcode>
>
> <faultstring>org.hibernate.hql.ast.QuerySyntaxException: unexpected token:
> from near line 1, column 11 [delete pa from
> org.apache.juddi.model.PublisherAssertion pa where (
> pa.businessEntityByFromKey.entityKey in ( ?1, ?2, ?3, ?4, ?5) or
> pa.businessEntityByToKey.entityKey in ( ?6, ?7, ?8, ?9, ?10) ) ]
> </faultstring>
> </soap:Fault>
> </soap:Body>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.