You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Konrad Jan Botor (JIRA)" <ji...@apache.org> on 2018/12/15 18:10:00 UTC

[jira] [Created] (CAMEL-13009) Error in generated XAdES 1.1.1 signature

Konrad Jan Botor created CAMEL-13009:
----------------------------------------

             Summary: Error in generated XAdES 1.1.1 signature 
                 Key: CAMEL-13009
                 URL: https://issues.apache.org/jira/browse/CAMEL-13009
             Project: Camel
          Issue Type: Bug
          Components: camel-xmlsecurity
    Affects Versions: 2.23.0
            Reporter: Konrad Jan Botor
             Fix For: Future


XAdES XSD file defines, among the others, type 
{code:xml}
DigestAlgAndValueType
{code}
In XAdES 1.1.1 this is defined as:
{code:xml}
<xsd:complexType name="DigestAlgAndValueType">
  <xsd:sequence>
    <xsd:element name="DigestMethod" type="ds:DigestMethodType"/>
    <xsd:element name="DigestValue" type="ds:DigestValueType"/>
  </xsd:sequence>
</xsd:complexType>
{code}
and in later versions as:
{code:xml}
<xsd:complexType name="DigestAlgAndValueType">
  <xsd:sequence>
    <xsd:element ref="ds:DigestMethod"/>
    <xsd:element ref="ds:DigestValue"/>
  </xsd:sequence>
</xsd:complexType>
{code}

Apache Camel always generates elements of this type according to the second definition, regardless of selected namespace. This may cause XAdES 1.1.1 signature validation to fail.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)