Skip to content

armgit / dify

Public Imported from GitHub
0

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.

fix: Prevent plugin installation with non-existent plugin IDs (#14038)

Yeuolybfbc5eb91e33
diff --git a/api/services/plugin/plugin_migration.py b/api/services/plugin/plugin_migration.py
index 618aa95daa2..6b911835737 100644
--- a/api/services/plugin/plugin_migration.py
+++ b/api/services/plugin/plugin_migration.py
@@ -386,7 +386,7 @@ class PluginMigration:
batch_plugin_identifiers = [
plugins["plugins"][plugin_id]
for plugin_id in batch_plugin_ids
- if plugin_id not in installed_plugins_ids
+ if plugin_id not in installed_plugins_ids and plugin_id in plugins["plugins"]
]
manager.install_from_identifiers(
tenant_id,