Santuario
  1. Santuario
  2. SANTUARIO-301

Missing KeyInfo element when encrypting multiple elements

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Java 1.4.6, Java 1.5.1
    • Fix Version/s: Java 1.4.7, Java 1.5.2
    • Component/s: Java
    • Security Level: Public (Public issues, viewable by everyone)
    • Labels:
      None

      Description

      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.

      1. TestBug.java
        2 kB
        Clement Pellerin
      2. TestBug.java
        2 kB
        Clement Pellerin

        Activity

        Clement Pellerin created issue -
        Clement Pellerin made changes -
        Field Original Value New Value
        Attachment TestBug.java [ 12518362 ]
        Colm O hEigeartaigh made changes -
        Affects Version/s Java 1.4.6 [ 12316461 ]
        Clement Pellerin made changes -
        Attachment TestBug.java [ 12518485 ]
        Colm O hEigeartaigh made changes -
        Fix Version/s Java 1.4.7 [ 12318844 ]
        Fix Version/s Java 1.5.2 [ 12320048 ]
        Colm O hEigeartaigh made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Colm O hEigeartaigh made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Colm O hEigeartaigh
            Reporter:
            Clement Pellerin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development