Skip to Content.
Sympa Menu

mace-opensaml-users - Exception when reading assertion artifacts

Subject: OpenSAML user discussion

List archive

Exception when reading assertion artifacts


Chronological Thread 
  • From:
  • To:
  • Subject: Exception when reading assertion artifacts
  • Date: Fri, 2 Jul 2004 12:24:36 -0400 (EDT)

Hello,

I try to create a new object from the folowing data with "new
SAMLRequest(InputStream)":

<?xml version="1.0" encoding="UTF-8"?>
<Request IssueInstant="2004-07-02T14:33:09.193Z" MajorVersion="1"
MinorVersion="1" RequestID="d90d17d573c9039bba0ef38f2b0beaad"
xmlns="urn:oasis:names:tc:SAML:1.0:protocol"
xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion"
xmlns:samlp="urn:oasis:names:tc:SAML:1.0:protocol">
<AssertionArtifact>a58f3d85d8b402e856b2e5b902d886db</AssertionArtifact>
</Request>

But I get this Error:

org.opensaml.UnsupportedExtensionException: SAMLQuery.getInstance() unable to
locate an implementation of specified query type
at org.opensaml.SAMLQuery.getInstance(SAMLQuery.java:125)
at org.opensaml.SAMLRequest.fromDOM(SAMLRequest.java:201)
at org.opensaml.SAMLRequest.<init>(SAMLRequest.java:140)
[...]

As I'm new to SAML I'm not sure whether this is a Bug in my request data or
in SAMLRequest.java, but there seems to be a problem with namespaces when
fromDOM searches for elements. It works fine (for me) if I change the line
else if (XML.isElementNamed(n, XML.SAML_NS, "AssertionArtifact")) {
in fromDOM(Element) in SAMLRequest.java to
else if (XML.isElementNamed(n, XML.SAMLP_NS, "AssertionArtifact")) {
as AssertionArtifact is part of the SAML protocol.


Best Regards
Ralf



Archive powered by MHonArc 2.6.16.

Top of Page