dify icon indicating copy to clipboard operation
dify copied to clipboard

bug in jinja2 join

Open Eternity714 opened this issue 5 months ago • 5 comments

Self Checks

  • [X] This is only for bug report, if you would like to ask a question, please head to Discussions.
  • [X] I have searched for existing issues search for existing issues, including closed ones.
  • [X] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [X] Please do not modify this template :) and fill in all the required fields.

Dify version

0.8.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

image

  1. use template node
  2. add input var arg1 as Array[String]
  3. set code as "{{ arg1|join('\n') }}"
  4. set arg1 as [ "123", "456", "789" ]
  5. run node

✔️ Expected Behavior

output arg1 value with \n, example is 123\n456\n789

❌ Actual Behavior

error: operation not permitted

Eternity714 avatar Sep 27 '24 18:09 Eternity714