<div dir="ltr"><div><span style="font-size:11pt;font-family:calibri,sans-serif">Hi All, </span></div><div><span style="font-size:11pt;font-family:calibri,sans-serif"><br></span></div><div><span style="font-size:11pt;font-family:calibri,sans-serif">I'm using </span><font face="calibri, sans-serif"><span style="font-size:14.6667px">OpenSAML-C++ 2.6.0 to develop SAML SP related functionality.  I've found a bug. It's related to the Assertions processing received from IdP.  When Assertions are not encrypted, but Attributes themselves are encrypted, the  </span></font><span style="font-family:calibri,sans-serif;font-size:11pt">Assertions20SchemaValidator throws an exception:</span></div><div><span style="font-family:calibri,sans-serif;font-size:11pt"><br></span></div>"AttributeStatement must have at least one Attribute."<div><br></div><div><br></div><div>That is not correct, because there are "<span style="color:black;font-family:consolas">EncryptedAttribute" </span>instead of "Attributes".</div><div><br></div><div>Here is the code, that causes this exception:</div><div><br></div><div><pre style="font-family:consolas;color:black;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="color:rgb(111,0,138)">BEGIN_XMLOBJECTVALIDATOR</span>(<span style="color:rgb(111,0,138)">SAML_DLLLOCAL</span>,AttributeStatement);
     <span style="color:rgb(111,0,138)">XMLOBJECTVALIDATOR_NONEMPTY</span>(AttributeStatement,Attribute);
<span style="color:rgb(111,0,138)">END_XMLOBJECTVALIDATOR</span>;</pre><pre style="font-family:consolas;color:black;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><br></pre><pre style="font-family:consolas;color:black;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">Regards,</pre><pre style="font-family:consolas;color:black;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">Orest Pechunka.

</pre></div><div><div><br></div></div></div>