You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2012/05/14 10:52:49 UTC

[jira] [Closed] (SANTUARIO-301) Missing KeyInfo element when encrypting multiple elements

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

Colm O hEigeartaigh closed SANTUARIO-301.
-----------------------------------------

    
> Missing KeyInfo element when encrypting multiple elements
> ---------------------------------------------------------
>
>                 Key: SANTUARIO-301
>                 URL: https://issues.apache.org/jira/browse/SANTUARIO-301
>             Project: Santuario
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: Java 1.4.6, Java 1.5.1
>            Reporter: Clement Pellerin
>            Assignee: Colm O hEigeartaigh
>             Fix For: Java 1.4.7, Java 1.5.2
>
>         Attachments: TestBug.java, TestBug.java
>
>
> When encrypting multiple elements using the same XMLCipher, the KeyInfo that was attached to the EncryptedData only appears on the last encrypted element. This is because EncryptedDataImpl.toElement() calls getKeyInfo().getElement() which always returns the same KeyInfo Element. When the KeyInfo is added to the latest EncryptedData, it is reparented and therefore disappears from the previous EncryptedData.

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