Custom Dataconnector's Schema
Krug, Jeff
Jeff.Krug at gtri.gatech.edu
Wed Mar 8 06:18:12 UTC 2023
There is something I clearly cannot figure out about the spring.schemas file. I looked at samples in the Shibboleth source code and it looks like a remote path on the left and a local path in the jar on the right, something like this:
http\://shibboleth.net/schema/idp/shibboleth-attribute-resolver.xsd = schema/shibboleth-attribute-resolver.xsd
I use the same format with the escaped ":", but no matter what, I get the blocked remote lookup warning. Either I do not get the syntax or there is some other thing I need to do to get Shibboleth to setup that remote location mapping to the jarfile's schema.
________________________________
From: users <users-bounces at shibboleth.net> on behalf of Cantor, Scott via users <users at shibboleth.net>
Sent: Monday, March 6, 2023 1:10:43 PM
To: Shib Users
Cc: Cantor, Scott
Subject: Re: Custom Dataconnector's Schema
It means you didn't have it correct originally and it's been loading it "remotely", though in your case it wasn't remote in a network sense. If you had stuck a remote URL in schemaLocation it would have happily resolved that, which is why we fixed it to stop doing that.
You have to fix your spring schema namespace mapping file to properly direct the value in the schemaLocation mapping into the classpath resource path you want it to use.
Spring is badly broken in this area but in a nutshell it insists on using the schemaLocation to locate the schema based on the namespace and then (optionally) maps from that location to a resource to load if you want it to pull from a jar via the META-INF spring.schemas file.
We just fixed it so that it it doesn't work if you bypass spring.schemas by accident or on purpose.
-- Scott
--
For Consortium Member technical support, see https://shibboleth.atlassian.net/wiki/x/ZYEpPw
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20230308/446b96b5/attachment.htm>
More information about the users
mailing list