[prev in list] [next in list] [prev in thread] [next in thread]
List: juddi-dev
Subject: [jira] Created: (JUDDI-51) juddi/function/SaveServiceFunction pb while trying to save multiple objec
From: "Mathieu Peltier (JIRA)" <juddi-dev () ws ! apache ! org>
Date: 2005-01-21 16:18:18
Message-ID: 1032062307.1106324298526.JavaMail.jira () ajax ! apache ! org
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic