修复BUG:
1.修复DDOS配置流量阈值(Bps)/(Pps)默认值Bug
2.修正配置导入域名字段错误提示信息
3.SNAT/DNAT复用策略配置 暂不支持 跳转日志检索
4.缓存策略配置导出忽略doLog(与界面列表一致)
5.修复音视频样例配置上传文件二次选择取消后文件框中的文件名还存在
6.修复特定服务管理新增报错
(cherry picked from commit 11424ee91d)
This commit is contained in:
@@ -469,8 +469,12 @@ public class CheckStringFormatThread implements Callable<String>{
|
||||
if (hexP.indexOf("1") != -1 && isHex.intValue() == 1) {
|
||||
boolean bl = Pattern.compile("^([0-9|a-f|A-F]*)$").matcher(keyword).matches();
|
||||
if(!bl) {
|
||||
String message = prop.getProperty("key_word");
|
||||
if(regionDict.getFunctionId().equals(403) || regionDict.getFunctionId().equals(200)) {
|
||||
message = prop.getProperty("domain_name");
|
||||
}
|
||||
errInfo.append(
|
||||
prop.getProperty("key_word") + " '" + keyword + "' "+String.format(prop.getProperty("contains_non_hex_char")) + ";");
|
||||
message + " '" + keyword + "' "+String.format(prop.getProperty("contains_non_hex_char")) + ";");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -287,7 +287,7 @@ public class CheckTopicWebsiteFormatThread implements Callable<String>{
|
||||
boolean bl = Pattern.compile("^([0-9|a-f|A-F]*)$").matcher(keyword).matches();
|
||||
if(!bl) {
|
||||
errInfo.append(
|
||||
prop.getProperty("key_word") + " '" + keyword + "' "+String.format(prop.getProperty("contains_non_hex_char")) + ";");
|
||||
prop.getProperty("domain_name") + " '" + keyword + "' "+String.format(prop.getProperty("contains_non_hex_char")) + ";");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -256,7 +256,7 @@ public class CachePolicyController extends BaseController{
|
||||
classMap.put(entity.getMenuNameCode(), CachePolicyUserRegion.class);
|
||||
classMap.put("PXY_CACHE_HTTP_URL", HttpUrlCfg.class);
|
||||
classMap.put("PXY_CACHE_HTTP_COOKIE", HttpUrlCfg.class);
|
||||
String cfgIndexInfoNoExport=",block_type,policy_name,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,&action:block_type-";
|
||||
String cfgIndexInfoNoExport=",block_type,do_log,policy_name,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,&action:block_type-";
|
||||
String httpUrlInfoNoExport=",block_type,do_log,action,config_describe,valid_identifier,is_audit,creator,creator"
|
||||
+ ",config_time,editor,edit_time,auditor,audit_time"
|
||||
+",letter,whether_area_block,classification,attribute,label"
|
||||
|
||||
@@ -81,13 +81,13 @@ public class DdosCfgService extends BaseService{
|
||||
if(StringUtil.isBlank(antiddosProtocol)) {
|
||||
entity.setAntiddosProtocol("");
|
||||
entity.setBpsThreadshold(0l);
|
||||
entity.setBpsThreadshold(0l);
|
||||
entity.setPpsThreadshold(0l);
|
||||
}
|
||||
if(bpsThreadshold==null) {
|
||||
entity.setBpsThreadshold(0l);
|
||||
}
|
||||
if(ppsThreadshold==null) {
|
||||
entity.setBpsThreadshold(0l);
|
||||
entity.setPpsThreadshold(0l);
|
||||
}
|
||||
//新增
|
||||
if(entity.getCfgId()==null){
|
||||
|
||||
@@ -92,6 +92,7 @@ public class SpecificServiceCfgService extends BaseService{
|
||||
group.setGroupName(specificServiceCfg.getSpecServiceName());
|
||||
group.setIsIssued(0);
|
||||
group.setGroupType(1);
|
||||
group.setInsertTime(new Date());
|
||||
if(specificServiceCfg.getCfgType()==1) {
|
||||
Integer compileId = ConfigServiceUtil.getId(1, 1).get(0);
|
||||
group.setCompileId(compileId);
|
||||
|
||||
Reference in New Issue
Block a user