You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by "Steve Viens (JIRA)" <ju...@ws.apache.org> on 2005/03/17 03:51:21 UTC

[jira] Closed: (JUDDI-54) When updating a business w/ a service, existing service key gets recreated

     [ http://issues.apache.org/jira/browse/JUDDI-54?page=history ]
     
Steve Viens closed JUDDI-54:
----------------------------


Fixed - applied patch provided by Gier. When saving a Business or Service.  New ServiceKey and BindingKey values were were being generated and used when they should not have been.  These values should only be generated when saving new Services or Bindings.

> When updating a business w/ a service, existing service key gets recreated
> --------------------------------------------------------------------------
>
>          Key: JUDDI-54
>          URL: http://issues.apache.org/jira/browse/JUDDI-54
>      Project: jUDDI
>         Type: Bug
>   Components: Apache Scout Requests
>     Reporter: Geir Magnusson Jr
>     Assignee: Steve Viens

>
> If you have an exiting business (Organization in JAXR parlance) that has a service, and you make an update to that business using save_business, any service key gets overwritten with a new one.
> The fix seems to be :
> Index: JDBCDataStore.java
> ===================================================================
> RCS file: /home/cvspublic/ws-juddi/src/java/org/apache/juddi/datastore/jdbc/JDBCDataStore.java,v
> retrieving revision 1.9
> diff -r1.9 JDBCDataStore.java
> 460a461,467
> >
> >             String serviceKey = service.getServiceKey();
> >
> >             if ((serviceKey == null) || (serviceKey.length() == 0)) {
> >                 service.setServiceKey(uuidgen.uuidgen());
> >             }
> >
> 462d468
> <             service.setServiceKey(uuidgen.uuidgen());

-- 
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