You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "John Hawkins (JIRA)" <ax...@ws.apache.org> on 2005/09/12 21:15:31 UTC

[jira] Updated: (AXISCPP-761) AXIS C++ allows empty URI for anyURI

     [ http://issues.apache.org/jira/browse/AXISCPP-761?page=all ]

John Hawkins updated AXISCPP-761:
---------------------------------

    Description: 
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

  was:

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

       Priority: Minor  (was: Major)

I don't believe this  is a major issue in comparison with other issues we have.

> AXIS C++ allows empty URI for anyURI
> ------------------------------------
>
>          Key: AXISCPP-761
>          URL: http://issues.apache.org/jira/browse/AXISCPP-761
>      Project: Axis-C++
>         Type: Bug
>   Components: XSD Types
>     Versions: current (nightly)
>     Reporter: Manohar
>     Priority: Minor

>
> 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