-
Sub-task
-
Resolution: Done
-
Major
-
None
-
Release Notes
-
Low
-
-
Documented as Resolved Issue
-
NEW
PLFED is expecting a <saml2:SubjectConfirmationData> subelement within <saml2:Subject>. If it doesn't find one, it will parse the closing <saml2:Subject> tag incorrectly, throwing a ClassCastException:
java.lang.ClassCastException: com.ctc.wstx.evt.CompactStartElement cannot be cast to javax.xml.stream.events.EndElement at org.picketlink.identity.federation.core.parsers.saml.SAMLSubjectParser.parse(SAMLSubjectParser.java:123) at org.picketlink.identity.federation.core.parsers.saml.SAMLAssertionParser.parse(SAMLAssertionParser.java:148) at org.picketlink.identity.federation.core.parsers.saml.SAMLParser.parse(SAMLParser.java:76)
This goes against the specification, which does not allow <saml2:SubjectConfirmationData> elements to be direct children of <saml2:Subject>.
See http://www.oasis-open.org/committees/download.php/35711/sstc-saml-core-errata-2.0-wd-06-diff.pdf , page 18.