axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manohar (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Created: (AXISCPP-761) AXIS C++ allows empty URI for anyURI
Date Mon, 25 Jul 2005 12:41:32 GMT
AXIS C++ allows empty URI for anyURI
------------------------------------

         Key: AXISCPP-761
         URL: http://issues.apache.org/jira/browse/AXISCPP-761
     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=<empty>" << endl;
            }
        }
        else
        {
            cout << "empty non-nillable element=<nil>" << 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


Mime
View raw message