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 "Bill Mitchell (JIRA)" <ji...@apache.org> on 2008/01/22 00:02:45 UTC
[jira] Created: (AXIS2C-927)
axiom_element_declare_default_namespace fails when no namespace already
declared
axiom_element_declare_default_namespace fails when no namespace already declared
--------------------------------------------------------------------------------
Key: AXIS2C-927
URL: https://issues.apache.org/jira/browse/AXIS2C-927
Project: Axis2-C
Issue Type: Bug
Environment: Windows XP, Visual Studio 2005, guththila, libcurl
Reporter: Bill Mitchell
If axiom_element_declare_default_namespace() is called before any named namespace is declared, it fails to perform the axutil_hash_make and as a result axutil_hash_set crashes on the empty namespace pointer.
The code fragment:
if (om_element->namespaces)
{
om_element->namespaces = axutil_hash_make(env);
if (!(om_element->namespaces))
{
return NULL;
}
}
should read:
if (!om_element->namespaces)
{
om_element->namespaces = axutil_hash_make(env);
if (!(om_element->namespaces))
{
return NULL;
}
}
--
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
[jira] Commented: (AXIS2C-927)
axiom_element_declare_default_namespace fails when no namespace already
declared
Posted by "Bill Mitchell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12564188#action_12564188 ]
Bill Mitchell commented on AXIS2C-927:
--------------------------------------
Although the source fix is obvious, I did verify it against a testcase. After downloading the updated sources, I regenerated my testcase for this by modifying one of the generated stubs and verified that it works correctly as applied, at least in the presence of a fix for AXIS2C-834 for guththila.
> axiom_element_declare_default_namespace fails when no namespace already declared
> --------------------------------------------------------------------------------
>
> Key: AXIS2C-927
> URL: https://issues.apache.org/jira/browse/AXIS2C-927
> Project: Axis2-C
> Issue Type: Bug
> Environment: Windows XP, Visual Studio 2005, guththila, libcurl
> Reporter: Bill Mitchell
> Assignee: Dinesh Premalal
> Fix For: 1.2.1
>
> Attachments: om_element_diff
>
>
> If axiom_element_declare_default_namespace() is called before any named namespace is declared, it fails to perform the axutil_hash_make and as a result axutil_hash_set crashes on the empty namespace pointer.
> The code fragment:
> if (om_element->namespaces)
> {
> om_element->namespaces = axutil_hash_make(env);
> if (!(om_element->namespaces))
> {
> return NULL;
> }
> }
> should read:
> if (!om_element->namespaces)
> {
> om_element->namespaces = axutil_hash_make(env);
> if (!(om_element->namespaces))
> {
> return NULL;
> }
> }
--
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
[jira] Resolved: (AXIS2C-927)
axiom_element_declare_default_namespace fails when no namespace already
declared
Posted by "Dinesh Premalal (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dinesh Premalal resolved AXIS2C-927.
------------------------------------
Resolution: Fixed
Fix Version/s: 1.2.1
Assignee: Dinesh Premalal
patch applied ! Thanks Bill for the patch.
> axiom_element_declare_default_namespace fails when no namespace already declared
> --------------------------------------------------------------------------------
>
> Key: AXIS2C-927
> URL: https://issues.apache.org/jira/browse/AXIS2C-927
> Project: Axis2-C
> Issue Type: Bug
> Environment: Windows XP, Visual Studio 2005, guththila, libcurl
> Reporter: Bill Mitchell
> Assignee: Dinesh Premalal
> Fix For: 1.2.1
>
> Attachments: om_element_diff
>
>
> If axiom_element_declare_default_namespace() is called before any named namespace is declared, it fails to perform the axutil_hash_make and as a result axutil_hash_set crashes on the empty namespace pointer.
> The code fragment:
> if (om_element->namespaces)
> {
> om_element->namespaces = axutil_hash_make(env);
> if (!(om_element->namespaces))
> {
> return NULL;
> }
> }
> should read:
> if (!om_element->namespaces)
> {
> om_element->namespaces = axutil_hash_make(env);
> if (!(om_element->namespaces))
> {
> return NULL;
> }
> }
--
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
[jira] Updated: (AXIS2C-927)
axiom_element_declare_default_namespace fails when no namespace already
declared
Posted by "Bill Mitchell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bill Mitchell updated AXIS2C-927:
---------------------------------
Attachment: om_element_diff
> axiom_element_declare_default_namespace fails when no namespace already declared
> --------------------------------------------------------------------------------
>
> Key: AXIS2C-927
> URL: https://issues.apache.org/jira/browse/AXIS2C-927
> Project: Axis2-C
> Issue Type: Bug
> Environment: Windows XP, Visual Studio 2005, guththila, libcurl
> Reporter: Bill Mitchell
> Attachments: om_element_diff
>
>
> If axiom_element_declare_default_namespace() is called before any named namespace is declared, it fails to perform the axutil_hash_make and as a result axutil_hash_set crashes on the empty namespace pointer.
> The code fragment:
> if (om_element->namespaces)
> {
> om_element->namespaces = axutil_hash_make(env);
> if (!(om_element->namespaces))
> {
> return NULL;
> }
> }
> should read:
> if (!om_element->namespaces)
> {
> om_element->namespaces = axutil_hash_make(env);
> if (!(om_element->namespaces))
> {
> return NULL;
> }
> }
--
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