dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

Just enter % in all queries to return all data(所有查询中只要输入%会返回所有数据)

Open samz406 opened this issue 7 years ago • 1 comments

Entering % in the place where the query is made will return all results. WHERE( " p.name like concat('%', #{searchVal}, '%') ");

The splicing to the top, and finally constructed as '%%%', will query all results. The solution is to escape % to normal characters. You can check the parameters of the GET request by adding an interceptor. Escaped with special characters.


在有查询的地方输入%,都会返回所有结果, WHERE( " p.name like concat('%', #{searchVal}, '%') ");

向上面的拼接,最后就构造成, '%%%' 这样,就会查询所有结果。 解决办法是将%进行转义成普通字符。 可以通过加一个拦截器,对GET请求的参数校验下。有特殊字符就转义。

samz406 avatar Apr 27 '19 05:04 samz406

1.0.3已经修复

qiaozhanwei avatar May 27 '19 08:05 qiaozhanwei