Uploaded image for project: 'Santuario'
  1. Santuario
  2. SANTUARIO-478

Property XMLOutputFactory.IS_REPAIRING_NAMESPACES should be FALSE by default

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      In the org.apache.xml.security.stax.ext.XMLSecurityConstants static initilizer block
      following is set
      xmlOutputFactory.setProperty(XMLOutputFactory.IS_REPAIRING_NAMESPACES, true);

      because of this the xml is getting updated after it is signed and which ultimately fails the signature validation (Invalid digest of reference).

      Attachments

        1. SignatureStAXTest.java
          4 kB
          Manjesh Kumar
        2. tva.jks
          3 kB
          Manjesh Kumar
        3. XML_Sample_File.xml
          4 kB
          Manjesh Kumar
        4. SignatureUtils.java
          6 kB
          Manjesh Kumar

        Activity

          People

            coheigea Colm O hEigeartaigh
            manjeshk Manjesh Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: