Skip to content

Output variable validation fails in code panel for the following nodes #31169

@GuangjingYan

Description

@GuangjingYan

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.11.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Enter the workflow orchestrate panel.
  2. Add a code node and a subsequent node.
  3. Create an invalid output variable in the code settings panel.
  4. Search for this variable in the output node.
  5. Run the app.

Image

✔️ Expected Behavior

  1. Users should not be able to create an output variable with a key that exceeds the valid length.
  2. Output variables in the code settings panel should be consistent with the variable search list in the subsequent node.

❌ Actual Behavior

  1. When user creating an invalid output variable only receives error notification, the invalid variable is created successfully.
  2. Though successfully created and able to run the code, the variable can not be selected in the following nodes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions