You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wss4j-dev@ws.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2008/10/15 18:44:44 UTC
[jira] Updated: (WSS-41) WSDoAllReceiver throws NPE if older WssNS
is used
[ https://issues.apache.org/jira/browse/WSS-41?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Colm O hEigeartaigh updated WSS-41:
-----------------------------------
Fix Version/s: (was: 1.5.5)
Leaving this one for a future release.
> WSDoAllReceiver throws NPE if older WssNS is used
> -------------------------------------------------
>
> Key: WSS-41
> URL: https://issues.apache.org/jira/browse/WSS-41
> Project: WSS4J
> Issue Type: Bug
> Reporter: Yevgeny Rouban
> Priority: Minor
>
> In the following part of the WSDoAllReceiver I encountered a NullPointerException (headerElement == null
> ath the last command) because my SOAP envelope had wsseNS other than WSConstants.WSSE_NS.
> Actually that was set to WSSE_NS_OASIS_2003_06. So I suggest to change
> hE.getNamespaceURI().equals(WSConstants.WSSE_NS)
> to
> hE.getNamespaceURI().equals(reqData.getWssConfig().getWsseNS())
> ---------------------------------------- WSDoAllReceiver.java
> Iterator headers = sHeader.examineHeaderElements(actor);
> SOAPHeaderElement headerElement = null;
> while (headers.hasNext()) {
> org.apache.axis.message.SOAPHeaderElement hE = (org.apache.axis.message.SOAPHeaderElement) headers.next();
> if (hE.getLocalName().equals(WSConstants.WSSE_LN)
> && hE.getNamespaceURI().equals(WSConstants.WSSE_NS)) {
> headerElement = hE;
> break;
> }
> }
> ((org.apache.axis.message.SOAPHeaderElement) headerElement)
> .setProcessed(true);
> ----------------------------------------
--
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: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org