Return-Path: Delivered-To: apmail-ws-juddi-cvs-archive@www.apache.org Received: (qmail 64721 invoked from network); 22 May 2009 03:17:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 May 2009 03:17:15 -0000 Received: (qmail 619 invoked by uid 500); 22 May 2009 03:17:28 -0000 Delivered-To: apmail-ws-juddi-cvs-archive@ws.apache.org Received: (qmail 572 invoked by uid 500); 22 May 2009 03:17:27 -0000 Mailing-List: contact juddi-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list juddi-cvs@ws.apache.org Received: (qmail 563 invoked by uid 99); 22 May 2009 03:17:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 May 2009 03:17:27 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 May 2009 03:17:25 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 39F802388873; Fri, 22 May 2009 03:17:05 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: juddi-cvs@ws.apache.org From: jfaath@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090522031705.39F802388873@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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