juddi/function/SaveServiceFunction pb while trying to save multiple objects?
----------------------------------------------------------------------------
Key: JUDDI-51
URL: http://issues.apache.org/jira/browse/JUDDI-51
Project: jUDDI
Type: Bug
Environment: Latest jUDDI CVS version (2005-01-21) deployed in JOnAS
Reporter: Mathieu Peltier
Assigned to: Steve Viens
In ws-juddi/src/java/org/apache/juddi/function/SaveServiceFunction.java: it
seems that, when a ServiceKey is specified, the validity of this service key
can not be checked by only calling the dataStore.isValidServiceKey(serviceKey)
method.
While trying to save multiple objects (eg a BusinessEntity and a
BusinessService) in the registry using the saveObjects(ArrayList) method, the
service may have been removed if the business entity contains it and was
already contained in the registry (see datastore.deleteBusiness(String
businessKey) method which deletes the BusinessEntity's Services and dependents).
A work around is just to comment the following lines (but of course I guess
this is not sufficient):
if (((serviceKey != null) && (serviceKey.length() > 0)) &&
(!dataStore.isValidServiceKey(serviceKey)))
throw new InvalidKeyPassedException("serviceKey="+serviceKey);
--
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