juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfa...@apache.org
Subject svn commit: r777360 - /webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/validation/ValidateInquiry.java
Date Fri, 22 May 2009 03:17:04 GMT
Author: jfaath
Date: Fri May 22 03:17:03 2009
New Revision: 777360

URL: http://svn.apache.org/viewvc?rev=777360&view=rev
Log:
fixing small inquiry validation issue

Modified:
    webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/validation/ValidateInquiry.java

Modified: webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/validation/ValidateInquiry.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/validation/ValidateInquiry.java?rev=777360&r1=777359&r2=777360&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/validation/ValidateInquiry.java
(original)
+++ webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/validation/ValidateInquiry.java
Fri May 22 03:17:03 2009
@@ -177,7 +177,7 @@
 		if (body == null)
 			throw new FatalErrorException(new ErrorMessage("errors.NullInput"));
 
-		if (body.getCategoryBag() == null && body.getFindTModel() == null && body.getTModelBag()
== null && body.getName() == null &&
+		if (body.getCategoryBag() == null && body.getFindTModel() == null && body.getTModelBag()
== null && body.getName().size() == 0 &&
 			body.getIdentifierBag() == null && body.getDiscoveryURLs() == null &&
body.getFindRelatedBusinesses() == null)
 			throw new FatalErrorException(new ErrorMessage("errors.findbusiness.NoInput"));
 
@@ -196,7 +196,7 @@
 		if (body == null)
 			throw new FatalErrorException(new ErrorMessage("errors.NullInput"));
 
-		if (body.getCategoryBag() == null && body.getFindTModel() == null && body.getTModelBag()
== null && body.getName() == null)
+		if (body.getCategoryBag() == null && body.getFindTModel() == null && body.getTModelBag()
== null && body.getName().size() == 0)
 			throw new FatalErrorException(new ErrorMessage("errors.findservice.NoInput"));
 
 		validateFindQualifiers(body.getFindQualifiers());



---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-cvs-help@ws.apache.org


Mime
View raw message