eca_base: Provide a mechanic to recursively replace tokens

Created on 10 March 2023, almost 2 years ago
Updated 19 April 2023, over 1 year ago

Problem/Motivation

In some situations, we have "tokens inside tokens".

Token replacement is being run on the given text once, it's not run recursively or something like that. That's why "tokens inside tokens" are not being replaced too. The reason behind that is a) performance and b) security - because the contained value may come from an untrusted source, and it would be a security risk to automatically replace tokens that is coming from a potentially untrusted source.

For the use case a user does want to replace "tokens inside tokens", we could provide an action to do so.

Steps to reproduce

Proposed resolution

I currently see two options:

  • Provide a new action "Token: replace" that will replace all tokens as long until no more tokens exist in the text.
  • Extend "Token: set value" with an option to enable recursive token replacement.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Fixed

Version

1.2

Component

Miscellaneous

Created by

🇩🇪Germany mxh Offenburg

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024