Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

string() function wraps a string into a string value #747

Closed
saig0 opened this issue Oct 20, 2023 · 0 comments · Fixed by #749
Closed

string() function wraps a string into a string value #747

saig0 opened this issue Oct 20, 2023 · 0 comments · Fixed by #749
Assignees
Labels
scope: Camunda 8 Required in the context of Camunda 8 type: bug

Comments

@saig0
Copy link
Member

saig0 commented Oct 20, 2023

Describe the bug
If I invoke the string() function with a string argument, the function wraps the string into another string. As a result, the string value is escaped.

This behavior is different compared to previous versions of the FEEL engine (i.e. a regression).

The wrapped string value is complicated to handle because I need to unwrap it before using it.

To Reproduce
Steps to reproduce the behavior:

  1. Evaluate the expression
string("foo")
  1. Verify that the result is a string wrapped inside a string
"\"foo\""

Expected behavior
If I invoke the string() function with a string value, it should return the string value as it is (i.e. no wrapping, no escaping).

string("foo")        => "foo"

Related DMN-TCK test case 0079-feel-string-function.

Environment

  • FEEL engine version: 1.17.0
  • Affects:
    • Camunda Automation Platform 7: [7.x]
    • Zeebe broker: 8.3.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: Camunda 8 Required in the context of Camunda 8 type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant