Custom Dataconnector's Schema
Krug, Jeff
Jeff.Krug at gtri.gatech.edu
Mon Mar 6 18:00:48 UTC 2023
I have a custom data connector that packaged it's XSD file into the jar and it loaded fine with 4.1.* (I think any of them, but I don't have good tracking on that). I never upgraded to 4.2, but I was working on upgrading to 4.3, and when the attribute-resolver is loading it fails to find the schema files (along with associated errors). I think this logging is the issue:
------
shib-idp;idp-process.log;dev;nothing;2023-03-06 17:40:42,056 - - WARN [net.shibboleth.ext.spring.util.LocalOnlyResourceEntityResolver:100] - Blocking attempted remote resolution of [classpa
th:/schema/txdps-4.1-resolver.xsd]
shib-idp;idp-warn.log;dev;nothing;2023-03-06 17:40:42,056 - - WARN [net.shibboleth.ext.spring.util.LocalOnlyResourceEntityResolver:100] - Blocking attempted remote resolution of [classpath:
/schema/txdps-4.1-resolver.xsd]
tomcat;catalina.out;dev;nothing;2023-03-06 17:40:42,057 [Timer for shibboleth.AttributeResolverService] WARN net.shibboleth.ext.spring.util.SchemaTypeAwareXMLBeanDefinitionReader- Ignored X
ML validation warning
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'classpath:/schema/txdps-4.1-resolver.xsd', because 1) could not find the document; 2) the document could no
t be read; 3) the root element of the document is not <xsd:schema>.
...
-------
I am guessing this is just me not keeping track of changes, and that it's probably a simple packaging change or syntax change, I need to make to my data connector, but a quick googling didn't help me identify what has changed, perhaps the way to specify the pathing has changed or maybe I need to place the schema file into an appropriate Shibboleth location separate from it being inside the jarfile.
These are the lines in attribute-resolver.xsd that trigger the above error:
-----
<AttributeResolver
xmlns:txdps="urn:global:txdps:4.1:resolver"
xsi:schemaLocation="urn:mace:shibboleth:2.0:resolver http://shibboleth.net/schema/idp/shibboleth-attribute-resolver.xsd
urn:global:txdps:4.1:resolver classpath:/schema/txdps-4.1-resolver.xsd">
-----
----------------
Jeffrey Krug (jeffrey.krug at gtri.gatech.edu)
Phone: 404-407-7903
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20230306/dc0c52d7/attachment.htm>
More information about the users
mailing list