-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Labels
Description
Issue type:
- 🐛 Bug
Description:
I wanted write the following, but with an override. ( actually the following code works as an override if imported after the orignal value )
{
"ControlHandler:_controls_value": {
"@id": "urn:solid-server:default:PasswordHtmlControlHandler",
"@type": "ControlHandler",
"controls": [{
"ControlHandler:_controls_key": "register",
"ControlHandler:_controls_value": { "@id": "urn:my-simple-register:default:CreateLoginPasswordRoute" }
}]
}
}But I wanted to use the 'OverrideListInsertAt' because it seems to be the clean way to do it ( and I guess it works regardless of the order of imports. After looking at the doc I have tried the following
{
"@id": "urn:solid-server:default:PasswordHtmlControlHandlerOverride",
"@type": "Override",
"overrideInstance": {
"@id": "urn:solid-server:default:PasswordHtmlControlHandler"
},
"overrideSteps": [
{
"@type": "OverrideListInsertAt",
"overrideParameter": {
"@id": "ControlHandler:_controls"
},
"overrideTarget": "register",
"overrideValue": {
"@id": "urn:my-simple-register:default:CreateLoginPasswordRoute"
}
}
]
}
Which returned the error:
ErrorResourcesContext: Invalid index in Override step OverrideListInsertAt for parameter https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^7.0.0/dist/identity/interaction/ControlHandler.jsonld#ControlHandler_controls_key: register
Is that normal ?
Is it because
Environment:
componentsjs v. 3.1.2
node v. 20
debian 12