You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by "Peter De Maeyer (Jira)" <ji...@apache.org> on 2020/06/11 06:39:00 UTC
[jira] [Updated] (SANTUARIO-541) Indent secure XML elements the
same way as the input XML
[ https://issues.apache.org/jira/browse/SANTUARIO-541?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Peter De Maeyer updated SANTUARIO-541:
--------------------------------------
Summary: Indent secure XML elements the same way as the input XML (was: Indent secure XML elements the same way as the unsecured XML)
> Indent secure XML elements the same way as the input XML
> --------------------------------------------------------
>
> Key: SANTUARIO-541
> URL: https://issues.apache.org/jira/browse/SANTUARIO-541
> Project: Santuario
> Issue Type: Improvement
> Components: Java
> Affects Versions: Java 2.1.5
> Reporter: Peter De Maeyer
> Assignee: Colm O hEigeartaigh
> Priority: Major
>
> Currently, secured XML elements are not indented, even when the unsecured input XML is.
> Take for example {{EncryptionCreationTest.testEncryptionIdToSecureSupersedesName}}, which has input with line breaks and indentation:
> {code:xml}
> <?xml version='1.0'?>
> <Root>
> <Branch1 attr1='abc'/>
> <Branch2 attr1='def'/>
> </Root>
> {code}
> and encrypted output with secured elements that don't have line breaks and indentation:
> {code}
> <?xml version='1.0' encoding='UTF-8'?><Root>
> <Branch1 attr1="abc"/>
> <xenc:EncryptedData xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" Id="G79d19501-544f-403d-831a-f99e5558a102" Type="http://www.w3.org/2001/04/xmlenc#Element"><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/><dsig:KeyInfo xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"><xenc:EncryptedKey Id="EKb7c2cb54-1548-44cd-978a-be83fa46c707"><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#kw-aes192"/><xenc:CipherData><xenc:CipherValue>D5c97seyBtid8tGxwjKEzz+xpKt1oCwk</xenc:CipherValue></xenc:CipherData></xenc:EncryptedKey></dsig:KeyInfo><xenc:CipherData><xenc:CipherValue>jWJS/BLcC03RlyqxKYUXnK7zuqvdO8Mu5T9OPIItvmHjeHLEWf9GZrHZMukDFviZ
> </xenc:CipherValue></xenc:CipherData></xenc:EncryptedData>
> </Root>
> {code}
> It would be nice if the encrypted elements would use the same indentation and line breaks as the original input.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)