Closed tvdijen closed 6 years ago
With Manage version 3.0.5 I can import the Metadata you have attached with both the Import XML and Import XML URL without any problems. I suspect you have a different metadata_configuration. Can you attach the saml20_sp.schema.json file you use? And the error message you have posted is not the stacktrace with line numbers. Can you provide this as well?
I can reproduce the problem by changing the saml20_sp.schema.json and configure duplicate arp aliases.
"arp": {
"type": "object",
"sources": [
"idp",
"orcid",
"sab",
"voot",
"pseudo_email",
"surfmarket_entitlements"
],
"properties": {
"enabled": {
"type": "boolean"
},
"attributes": {
"properties": {
"urn:mace:dir:attribute-def:eduPersonTargetedID": {
"$ref": "#/definitions/ArpAttribute",
"alias": "urn:mace:dir:attribute-def:displayName"
},
"urn:mace:dir:attribute-def:eduPersonPrincipalName": {
"$ref": "#/definitions/ArpAttribute",
"alias": "urn:mace:dir:attribute-def:displayName"
},
This is currently not allowed.
I must be missing something, because I don’t see any duplicates...
I see the problem. Because there are no aliases and the code assumes there is otherwise it's uses a default. The default is the cause of the duplicate. This commit resolves this: https://github.com/OpenConext/OpenConext-manage/commit/ca1f5c67589ece152a1dd6a32747c845da5b034a#diff-496a452304aaa61f08361c0a664b8459
Now those arp attributes without alias are filtered out when constructing the alias map. See https://github.com/OpenConext/OpenConext-manage/commit/7fb20afa473c2b8487e71a71ab2b8469bc7f0cd4
Thanks! This is just a default file I downloaded somewhere when I first started using Manage. Probably from the deploy project..
I see deploy has aliases in place for all arp attributes. Perhaps it needs mentioning in the changelog when the semantics of these files change
I'm trying to bootstrap OC-dashboard, but both metadata-import (tested both XML and URL) fail with an error-message that doesn't make much sense to me:
I've attached a copy of the metadata I'm trying to import: Metadata.txt