Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 31562 invoked from network); 26 Jul 2005 04:31:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Jul 2005 04:31:35 -0000 Received: (qmail 87924 invoked by uid 500); 26 Jul 2005 04:31:35 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 87796 invoked by uid 500); 26 Jul 2005 04:31:34 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 87670 invoked by uid 99); 26 Jul 2005 04:31:33 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2005 21:31:21 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 08F61DF for ; Tue, 26 Jul 2005 06:31:18 +0200 (CEST) Message-ID: <731978163.1122352278002.JavaMail.jira@ajax.apache.org> Date: Tue, 26 Jul 2005 06:31:17 +0200 (CEST) From: "Samisa Abeysinghe (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Closed: (AXISCPP-760) AXIS C++ allows empty URI for anyURI In-Reply-To: <2004555511.1122295279638.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXISCPP-760?page=all ] Samisa Abeysinghe closed AXISCPP-760: ------------------------------------- Resolution: Duplicate Duplicate of AXISCPP-761 > AXIS C++ allows empty URI for anyURI > ------------------------------------ > > Key: AXISCPP-760 > URL: http://issues.apache.org/jira/browse/AXISCPP-760 > Project: Axis-C++ > Type: Bug > Reporter: Manohar > > When I pass an empty URI as an XSD_anyURI input, AXIS C++ allows it. As per the specification, an empty URI is not permitted. > Here is the code which shows the problem. > char emptyanyURI[1] = ""; > xsd__anyURI emptyInput = new char[1]; > strcpy (emptyInput, emptyanyURI); > result = ws->asNonNillableElement(emptyInput); > if (result) > { > if (*result) > { > cout << "empty non-nillable element=" << result << endl; > } > else > { > cout << "empty non-nillable element=" << endl; > } > } > else > { > cout << "empty non-nillable element=" << endl; > } > Following exception is thrown when I passed an empty URI as an input. > "com.ibm.ws.webservices.engine.types.URI$MalformedURIException: Cannot initialize URI with empty parameters" > The above exception repoted by server. AXIS C++ shouldn't allow an empty URI and it should report some exception. A testcase for this problem will be added soon. > Regards > Manohar -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira