juddi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mathieu Peltier (JIRA)" <juddi-...@ws.apache.org>
Subject [jira] Created: (JUDDI-51) juddi/function/SaveServiceFunction pb while trying to save multiple objects?
Date Fri, 21 Jan 2005 16:18:18 GMT
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:
If you want more information on JIRA, or have a bug to report see:

View raw message