Bug 47459

Summary: c14n11 does include parent xml:id attributes in encrypted data
Product: Security - Now in JIRA Reporter: sstaible <staible>
Component: CanonicalizationAssignee: XML Security Developers Mailing List <security-dev>
Status: NEW ---    
Severity: normal CC: premieragent
Priority: P2 Keywords: RFC
Version: Java 1.4.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 57030    
Attachments: debug log
Testcase
debug log of test case

Description sstaible 2009-06-30 06:22:27 UTC
Created attachment 23913 [details]
debug log

xml:id attributes are still not correctly handled when using c14n11 for encryption.

Example:

When I encrypt the <data> element in the following xml document, the xml:id attribute is added to the canonical form of the data tag during encryption.

<?xml version="1.0" encoding="UTF-8"?><test xml:id="ref1234">
  <data>12345678</data>
</test>

encrypt/decrypt using c14n11 creates the following:

<?xml version="1.0" encoding="UTF-8"?><test xml:id="ref1234">
  <data xml:id="ref1234">12345678</data>
</test>

See also attached debug log.
Comment 1 coheigea 2009-07-01 04:08:07 UTC
Can you provide a test-case?

Colm.
Comment 2 sstaible 2009-07-01 10:34:06 UTC
Created attachment 23917 [details]
Testcase
Comment 3 sstaible 2009-07-01 10:35:38 UTC
Created attachment 23918 [details]
debug log of test case
Comment 4 Chuck Caldarale 2014-09-28 13:18:13 UTC
*** Bug 57030 has been marked as a duplicate of this bug. ***