You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: In the import loop, after pluginMapper.insertSelective(pluginDO) > 0, the comment says // publish create event. init plugin data, but unlike the normal create() path (line 299-302 which calls pluginEventPublisher.onCreated(pluginDO)), the import path only increments successCount and never calls pluginEventPublisher.onCreated. So ResourceServiceImpl.onPluginCreated is never triggered for imported plugins.
impact: Plugins imported via config import are persisted but their plugin-resource/permission initialization is silently skipped, leaving them in a half-initialized state.
suggested_fix: Add pluginEventPublisher.onCreated(pluginDO); inside the if (pluginMapper.insertSelective(pluginDO) > 0) block.
shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/PluginServiceImpl.java:257-274pluginMapper.insertSelective(pluginDO) > 0, the comment says// publish create event. init plugin data, but unlike the normalcreate()path (line 299-302 which callspluginEventPublisher.onCreated(pluginDO)), the import path only incrementssuccessCountand never callspluginEventPublisher.onCreated. SoResourceServiceImpl.onPluginCreatedis never triggered for imported plugins.pluginEventPublisher.onCreated(pluginDO);inside theif (pluginMapper.insertSelective(pluginDO) > 0)block.Identified during the 2026-08-02 deep re-scan; full list in
docs/scan2-2026-08-02/00-consolidated-critical-high.md.