You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Rich Scheuerle (JIRA)" <ji...@apache.org> on 2008/02/12 22:21:08 UTC
[jira] Created: (WSCOMMONS-302) SOAPHeader children should be
SOAPHeaderBlock objects
SOAPHeader children should be SOAPHeaderBlock objects
-----------------------------------------------------
Key: WSCOMMONS-302
URL: https://issues.apache.org/jira/browse/WSCOMMONS-302
Project: WS-Commons
Issue Type: Bug
Components: AXIOM
Reporter: Rich Scheuerle
Problem:
The children of a SOAPHeader objects should be text or SOAPHeaderBlock objects.
Adding raw OMElement blocks results in a ClassCastException downstream when the children are accessed via SOAPHeader iterators.
Solution:
Unfortunately there are legacy tests in Axis2 that seem to depend on this ill-defined behavior.
So the solution is to add trace to SOAPHeader.addChild when an attempt is made to add a raw OMElement.
An exception is dumped to the trace to make it easy to locate the ill-behaved caller.
I also fixed the Axiom tests (1 test) that accidentally added an OMElement to a SOAPHeader.
--
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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org
[jira] Resolved: (WSCOMMONS-302) SOAPHeader children should be
SOAPHeaderBlock objects
Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WSCOMMONS-302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rich Scheuerle resolved WSCOMMONS-302.
--------------------------------------
Resolution: Fixed
Revision = 627116
> SOAPHeader children should be SOAPHeaderBlock objects
> -----------------------------------------------------
>
> Key: WSCOMMONS-302
> URL: https://issues.apache.org/jira/browse/WSCOMMONS-302
> Project: WS-Commons
> Issue Type: Bug
> Components: AXIOM
> Reporter: Rich Scheuerle
>
> Problem:
> The children of a SOAPHeader objects should be text or SOAPHeaderBlock objects.
> Adding raw OMElement blocks results in a ClassCastException downstream when the children are accessed via SOAPHeader iterators.
> Solution:
> Unfortunately there are legacy tests in Axis2 that seem to depend on this ill-defined behavior.
> So the solution is to add trace to SOAPHeader.addChild when an attempt is made to add a raw OMElement.
> An exception is dumped to the trace to make it easy to locate the ill-behaved caller.
> I also fixed the Axiom tests (1 test) that accidentally added an OMElement to a SOAPHeader.
--
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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org