Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.3
-
None
-
None
Description
OverviewURL is optional in OverviewDoc, provided that you specify a Description. Omitting an OverviewURL is currently causing an error:
QUERY :
<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>
<save_tModel xmlns="urn:uddi-org:api_v3">
<authInfo>authtoken:81cae87a-102f-4b58-ac8c-10d205bfdd2b</authInfo>
<tModel tModelKey="uddi:uddi.org:tmodeltest02">
<name>tmodeltest02</name>
<description xml:lang="en">SoapUI Test Case</description>
<overviewDoc>
<description xml:lang="en">This is a tModel create for testing</description>
</overviewDoc>
</tModel>
</save_tModel>
</soapenv:Body>
</soapenv:Envelope>
RESULT :
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<env:Fault>
<faultcode>env:Server</faultcode>
<faultstring>org.hibernate.PropertyValueException: not-null property references a null or transient value: org.apache.juddi.model.OverviewDoc.overviewUrl</faultstring>
</env:Fault>
</env:Body>
</env:Envelope>
Here's what I think needs changing :
@Column(name = "overview_url", nullable = false)
public String getOverviewUrl()