axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manohar (JIRA)" <>
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
     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;
                cout << "empty non-nillable element=<empty>" << endl;
            cout << "empty non-nillable element=<nil>" << endl;

Following exception  is thrown when I passed an empty URI as an input.  

"$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.


This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message