[BUG] namespace_plugin_rel resultMap maps wrong column to wrong property (enabled never populated)
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 85/100
Research direction
Inspect shenyu-admin/src/main/resources/mappers/namespace-plugin-rel-sqlmap.xml at line 29, then compare Base_Column_List, schema.sql:1428, and NamespacePluginRelDO. Trace listByNamespaceId at line 381 using BaseResultMap. Done means the enabled column populates enabled and sort is no longer overwritten by that mapping.
Written by the indexing model from the issue text.
Description
- severity: High
- files:
shenyu-admin/src/main/resources/mappers/namespace-plugin-rel-sqlmap.xml:29 - description:
BaseResultMapline 29 is<result column="enable" jdbcType="BOOLEAN" property="sort"/>. Two errors: (a) the real column isenabled(perBase_Column_List:38andschema.sql:1428), notenable; (b) it maps to propertysortinstead ofenabled. Theenabledproperty ofNamespacePluginRelDOhas no mapping at all.listByNamespaceId(line 381,resultMap="BaseResultMap") is the consumer. - impact: Callers of
namespacePluginRelMapper.listByNamespaceIdobserve nullenabledand corruptedsort; downstream plugin-enable-state logic is silently wrong. - suggested_fix: Replace line 29 with
<result column="enabled" jdbcType="TINYINT" property="enabled"/>. - confidence: High
- related_existing: none. Pure mapper/XML defect not in baseline.
Identified during the 2026-08-02 deep re-scan; full list in docs/scan2-2026-08-02/00-consolidated-critical-high.md.
- Dominant language
- Java
- Stars
- 8.8k
- Forks
- 3.1k
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 85
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/shenyu
-
plugin: mock priority: medium type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
-
admin priority: medium type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
[BUG] DivideIngressParser protocol[i++] throws AIOOBE when protocol array shorter than endpoints Openkubernetes priority: medium type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
[BUG] ContextPathParser concatenates null annotation value with /** — literal null/** rule condition Openkubernetes priority: medium type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
kubernetes priority: medium type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100