[
https://issues.apache.org/jira/browse/JUDDI-390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kurt T Stam closed JUDDI-390.
-----------------------------
Fix Version/s: 3.0.2
Resolution: Cannot Reproduce
Please reopen if this is still an issue.
> 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
> Fix For: 3.0.2
>
>
> 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.