You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by "SourceForge.net" <no...@sourceforge.net> on 2003/10/07 08:46:13 UTC
[juddi-Developers] [ juddi-Bugs-819066 ] FindServiceByTModelKeyQuery businessKey is optional
Bugs item #819066, was opened at 2003-10-06 23:49
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=434422&aid=819066&group_id=42875
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: FindServiceByTModelKeyQuery businessKey is optional
Initial Comment:
In the FindServiceByTModelKeyQuery class, the
businessKey is always appended to the where clause of
the query, even if it's null. According to the UDDI v2
spec, the businessKey is optional.
To fix this, in the method appendWhere(), change the
line:
sql.append("AND S.BUSINESS_KEY = '").append
(businessKey).append("' ");
to:
if (businessKey != null && businessKey.length() > 0) {
sql.append("AND S.BUSINESS_KEY = '").append
(businessKey).append("' ");
}
Marcel
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=434422&aid=819066&group_id=42875