This is an automated email from the ASF dual-hosted git repository.

wakefu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git


The following commit(s) were added to refs/heads/master by this push:
     new e204cb1c1d [INLONG-12079][Manager] Fix the problem of 
AuditAlertRuleRequest lacks validation for orderField and orderType (#12080)
e204cb1c1d is described below

commit e204cb1c1dd4f3f41817a89ab226c306be8ad145
Author: fuweng11 <[email protected]>
AuthorDate: Wed Feb 25 17:28:28 2026 +0800

    [INLONG-12079][Manager] Fix the problem of AuditAlertRuleRequest lacks 
validation for orderField and orderType (#12080)
    
    Co-authored-by: wakefu <[email protected]>
---
 .../inlong/manager/service/core/impl/AuditAlertRuleServiceImpl.java  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/core/impl/AuditAlertRuleServiceImpl.java
 
b/inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/core/impl/AuditAlertRuleServiceImpl.java
index e241ae5c3c..96a00b1dc6 100644
--- 
a/inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/core/impl/AuditAlertRuleServiceImpl.java
+++ 
b/inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/core/impl/AuditAlertRuleServiceImpl.java
@@ -28,6 +28,8 @@ import 
org.apache.inlong.manager.pojo.audit.AuditAlertCondition;
 import org.apache.inlong.manager.pojo.audit.AuditAlertRule;
 import org.apache.inlong.manager.pojo.audit.AuditAlertRulePageRequest;
 import org.apache.inlong.manager.pojo.audit.AuditAlertRuleRequest;
+import org.apache.inlong.manager.pojo.common.OrderFieldEnum;
+import org.apache.inlong.manager.pojo.common.OrderTypeEnum;
 import org.apache.inlong.manager.pojo.common.PageResult;
 import org.apache.inlong.manager.service.core.AuditAlertRuleService;
 
@@ -213,7 +215,8 @@ public class AuditAlertRuleServiceImpl implements 
AuditAlertRuleService {
 
         // Start pagination
         PageHelper.startPage(request.getPageNum(), request.getPageSize());
-
+        OrderFieldEnum.checkOrderField(request);
+        OrderTypeEnum.checkOrderType(request);
         // Get from database
         Page<AuditAlertRuleEntity> entityPage = (Page<AuditAlertRuleEntity>) 
alertRuleMapper.selectByCondition(request);
 

Reply via email to