Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: enhance file extension condition check for if-else node (#17060)
Arcanerbecd03a4aa4f
diff --git a/api/core/workflow/utils/condition/processor.py b/api/core/workflow/utils/condition/processor.pyindex c61b3d1861c..9795387788c 100644--- a/api/core/workflow/utils/condition/processor.py+++ b/api/core/workflow/utils/condition/processor.py@@ -375,11 +375,25 @@ def _process_sub_conditions(for condition in sub_conditions:key = FileAttribute(condition.key)values = [file_manager.get_attr(file=file, attr=key) for file in files]+ expected_value = condition.value+ if key == FileAttribute.EXTENSION:+ if not isinstance(expected_value, str):+ raise TypeError("Expected value must be a string when key is FileAttribute.EXTENSION")+ if expected_value and not expected_value.startswith("."):+ expected_value = "." + expected_value++ normalized_values = []+ for value in values:+ if value and isinstance(value, str):+ if not value.startswith("."):+ value = "." + value+ normalized_values.append(value)+ values = normalized_valuessub_group_results = [_evaluate_condition(value=value,operator=condition.comparison_operator,- expected=condition.value,+ expected=expected_value,)for value in values]