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 "nadir amra (JIRA)" <ax...@ws.apache.org> on 2008/07/12 04:09:31 UTC
[jira] Closed: (AXISCPP-761) AXIS C++ allows empty URI for anyURI
[ https://issues.apache.org/jira/browse/AXISCPP-761?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
nadir amra closed AXISCPP-761.
------------------------------
Resolution: Duplicate
duplicated by AXISCPP-789.
> AXIS C++ allows empty URI for anyURI
> ------------------------------------
>
> Key: AXISCPP-761
> URL: https://issues.apache.org/jira/browse/AXISCPP-761
> Project: Axis-C++
> Issue Type: Bug
> Components: XSD Types
> Affects 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.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org