ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colm O hEigeartaigh (Closed) (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (WSS-77) "envelope" is always null, if build(..) is not invoked beforehands, therefore doEncryption(..) fails
Date Mon, 03 Oct 2011 09:04:36 GMT

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

Colm O hEigeartaigh closed WSS-77.
----------------------------------

    
> "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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


Mime
View raw message