Different behavior in & out of container

Thomas Lionel SMETS (prof) tsmets at a3-system.eu
Fri Jun 7 11:15:49 EDT 2013


I am building AuthnRequest with my extensions.
It generates the following which can easily be  marshalled & unmarshalled :

********************** Slightly anonymized & beautyfied
**********************
<?xml version="1.0" encoding="UTF-8"?>
<saml2p:AuthnRequest xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol"
                     xmlns:Cpy"urn:my:Cpy:names:tc:SAML:2.0:assertion"
                     xmlns:Cpyp="urn:my:Cpy:names:tc:SAML:2.0:protocol"
                     xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion"
                     AssertionConsumerServiceURL="https://www.myCpy.com"
                     Destination="My Destination"
ID="ID-1370615996290-1445035680"
                     IssueInstant="2013-06-07T14:39:56.296Z"
                    
ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
                     ProviderName="PROV"
                     Version="2.0">
  <saml2p:Extensions>
    <Cpy:Min>10</Cpy:Min>
    <Cpy:TSPT>TspType-11</Cpy:TSPT>
    <Cpy:TSP-ID>TspId-11</Cpy:TSP-ID>
    <Cpy:lang>DE</Cpy:lang>
  </saml2p:Extensions>
</saml2p:AuthnRequest>
***************************************************************************************


If I write unit test doing the whole chaine :
Custom Java
    --> OpenSAML
        --> write XML
            --> read XML
                --> OpenSAML
                    --> Custom Java
Original & generated instances are "perfectly" equal.
Now, if I do the following process :
Custom Java
    --> OpenSAML
        --> write XML
            --> POST over HTTP(s)
                --> read XML
                    --> OpenSAML
                        --> Custom Java


The extensions are NOT recognized ? ? ?
17:05:58,079  FATAL [engine.util.ExtensionToolBox] Unknown /
unimplemented type. QName :
'{urn:my:Cpy:names:tc:SAML:2.0:assertion}Min' SchemaType : 'null' -->
org.opensaml.xml.schema.impl.XSAnyImpl at 3f8025f5 
17:05:58,080  FATAL [engine.util.ExtensionToolBox] Unknown /
unimplemented type. QName :
'{urn:my:Cpy:names:tc:SAML:2.0:assertion}TSPT' SchemaType : 'null' -->
org.opensaml.xml.schema.impl.XSAnyImpl at 763c1864 
17:05:58,080  FATAL [engine.util.ExtensionToolBox] Unknown /
unimplemented type. QName :
'{urn:my:Cpy:names:tc:SAML:2.0:assertion}TSP-ID' SchemaType : 'null' -->
org.opensaml.xml.schema.impl.XSAnyImpl at 636589e0 
17:05:58,080  FATAL [engine.util.ExtensionToolBox] Unknown /
unimplemented type. QName :
'{urn:my:Cpy:names:tc:SAML:2.0:assertion}lang' SchemaType : 'null' -->
org.opensaml.xml.schema.impl.XSAnyImpl at 1f3f041b 
17:05:58,080  FATAL [engine.util.ExtensionToolBox] Unknown /
unimplemented type. QName :
'{urn:my:Cpy:names:tc:SAML:2.0:protocol}RequestedAttributes' SchemaType
: 'null' --> org.opensaml.xml.schema.impl.XSAnyImpl at 622698a3 


\T,




-- 
Thomas Lionel SMETS, CISSP (385434)
*m :* +32 497 44 68 12
*ph :* +32 2 852 3341
*skype :* thomas.lionel.smets

PGP = FDF0 8FB8 4F37 3F79 1011 05AB 0DCE 9BAB 5DD0 0E10
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/dev/attachments/20130607/21068505/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tsmets.vcf
Type: text/x-vcard
Size: 319 bytes
Desc: not available
Url : http://shibboleth.net/pipermail/dev/attachments/20130607/21068505/attachment-0001.vcf 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 552 bytes
Desc: OpenPGP digital signature
Url : http://shibboleth.net/pipermail/dev/attachments/20130607/21068505/attachment-0001.bin 


More information about the dev mailing list