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 "Ruchith Udayanga Fernando (JIRA)" <ji...@apache.org> on 2007/08/08 03:15:59 UTC

[jira] Resolved: (WSS-77) "envelope" is always null, if build(..) is not invoked beforehands, therefore doEncryption(..) fails

     [ https://issues.apache.org/jira/browse/WSS-77?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ruchith Udayanga Fernando resolved WSS-77.
------------------------------------------

    Resolution: Fixed

http://svn.apache.org/viewvc?view=rev&rev=563714

> "envelope" is always null, if build(..) is not invoked beforehands, therefore doEncryption(..) fails
> ----------------------------------------------------------------------------------------------------
>
>                 Key: WSS-77
>                 URL: https://issues.apache.org/jira/browse/WSS-77
>             Project: WSS4J
>          Issue Type: Bug
>         Environment: Axis2-1.2, rampart-1.2, wss4j-SNAPSHOT
>            Reporter: Angel Todorov
>            Assignee: Davanum Srinivas
>         Attachments: WSSecDKEncrypt.diff
>
>
> there is the following code in rampart's SymmetricBindingBuilder: 
> refList = dkEncr.encryptForExternalRef(null, encrParts);
>                 
>                 RampartUtil.insertSiblingAfter(rmd, 
>                                                 encrDKTokenElem, 
>                                                 refList);
> This fails with NPE though, because internally, encryptForExternalRef calls doEncryption(..) which tries to access the "envelope" instance which is always null (except if build is not invoked before that). Envelope must be checked , and if null, set to the instance obtained from "doc". 
> I am attaching the fix. Thank you.
> Regards,
> Angel

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