-
Notifications
You must be signed in to change notification settings - Fork 363
Add ability to change default DLS parameter substitution behavior #1310
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueThese are recommended starting points for newcomers looking to make their first contributions.These are recommended starting points for newcomers looking to make their first contributions.help wantedCommunity contributions are especially encouraged for these issues.Community contributions are especially encouraged for these issues.triagedIssues labeled as 'Triaged' have been reviewed and are deemed actionable.Issues labeled as 'Triaged' have been reviewed and are deemed actionable.v3.6.0Issues targeting release v3.6.0Issues targeting release v3.6.0
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueThese are recommended starting points for newcomers looking to make their first contributions.These are recommended starting points for newcomers looking to make their first contributions.help wantedCommunity contributions are especially encouraged for these issues.Community contributions are especially encouraged for these issues.triagedIssues labeled as 'Triaged' have been reviewed and are deemed actionable.Issues labeled as 'Triaged' have been reviewed and are deemed actionable.v3.6.0Issues targeting release v3.6.0Issues targeting release v3.6.0
Currently, if DLS contains a parameter that is not quoted and is not defined anywhere, i get this error:
Unrecognized token '$': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')This is happening, because replaceProperties method replaces only defined parameters, but does nothing to at least replace undefined ones with ''. This doesn't result in error if all the parameters are quoted, because even though they are not being replaced, the JSON structure still stays syntactically correct. But if there is at least one unquoted parameter, I get this error.
For example, if I have this role configuration:
And JWT payload looks like:
Then everything works correctly. But if for some reason I don't define this
arrayfield in JWT payload, I get the error described above.I think there should be an option to tweak this behavior: