You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "Loyal-Young (via GitHub)" <gi...@apache.org> on 2026/10/19 12:11:41 UTC
[I] Data-source search treats percent and underscore as SQL wildcards [rocketmq-dashboard]
Loyal-Young opened a new issue, #7065:
URL: https://github.com/apache/rocketmq-dashboard/issues/7065
## Problem
The paged data-source endpoint passes `search` into a SQL `LIKE` clause and `type` into another `LIKE` pattern without escaping `%` and `_`. A literal search such as `prod_%` therefore matches unrelated JSON values, and a type filter of `%` matches every type. The UI presents these values as ordinary filter text.
## Expected behavior
Treat user-provided `%`, `_`, and backslashes as literal characters while retaining the endpoint's substring search and exact type-filter behavior. Keep filter values bound as parameters.
## Reproduction
Create data sources with names or URLs containing `prod_a` and `prod_%`, then request `/api/settings/datasources/page?search=prod_%`. The current query uses `%prod_%%` as a pattern and returns both instead of just the literal match.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Data-source search treats percent and underscore as SQL wildcards [rocketmq-dashboard]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #7065:
URL: https://github.com/apache/rocketmq-dashboard/issues/7065#issuecomment-6512115233
This issue has been automatically closed because there has been no activity for 7 days. If you believe this issue is still relevant, please reopen it with updated information.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Data-source search treats percent and underscore as SQL wildcards [rocketmq-dashboard]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #7065: Data-source search treats percent and underscore as SQL wildcards
URL: https://github.com/apache/rocketmq-dashboard/issues/7065
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org