证书策略去掉业务类型选项,domain拦截修改domian自定义域bug更改
This commit is contained in:
@@ -162,8 +162,8 @@
|
|||||||
<if test="isAudit == 1">
|
<if test="isAudit == 1">
|
||||||
AND r.is_audit =1
|
AND r.is_audit =1
|
||||||
</if>
|
</if>
|
||||||
<if test="cfgType != null">
|
<if test="cfgType == 'ip' ">
|
||||||
AND r.cfg_type =#{cfgType,jdbcType=VARCHAR}
|
<![CDATA[AND r.keyring_type <> 'end-entity']]>
|
||||||
</if>
|
</if>
|
||||||
<if test="cfgId != null">
|
<if test="cfgId != null">
|
||||||
AND r.CFG_ID=#{cfgId,jdbcType=BIGINT}
|
AND r.CFG_ID=#{cfgId,jdbcType=BIGINT}
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import org.springframework.stereotype.Service;
|
|||||||
|
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.configuration.AreaIpCfg;
|
import com.nis.domain.configuration.AreaIpCfg;
|
||||||
|
import com.nis.domain.configuration.BaseStringCfg;
|
||||||
import com.nis.domain.configuration.CfgIndexInfo;
|
import com.nis.domain.configuration.CfgIndexInfo;
|
||||||
import com.nis.domain.configuration.HttpUrlCfg;
|
import com.nis.domain.configuration.HttpUrlCfg;
|
||||||
import com.nis.domain.configuration.InterceptPktBin;
|
import com.nis.domain.configuration.InterceptPktBin;
|
||||||
@@ -283,7 +284,14 @@ public class InterceptCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo>
|
|||||||
if(entity.getHttpUrlList()!=null && entity.getHttpUrlList().size()>0){
|
if(entity.getHttpUrlList()!=null && entity.getHttpUrlList().size()>0){
|
||||||
doaminFlag=true;
|
doaminFlag=true;
|
||||||
domainUserRegion=Constants.USERREGION_DOMAIN_ID+"="+entity.getCompileId();
|
domainUserRegion=Constants.USERREGION_DOMAIN_ID+"="+entity.getCompileId();
|
||||||
domainUserRegion=domainUserRegion+";"+Constants.USERREGION_DOMAIN_STR+"="+entity.getHttpUrlList().get(0).getCfgKeywords();
|
String domainStr="";
|
||||||
|
if(entity != null && entity.getHttpUrlList() != null && entity.getHttpUrlList().size() > 0){
|
||||||
|
BaseStringCfg httpUrl= entity.getHttpUrlList().get(0);
|
||||||
|
domainStr=httpUrl.getCfgKeywords();
|
||||||
|
}
|
||||||
|
//entity.getHttpUrlList().get(0).getCfgKeywords();
|
||||||
|
|
||||||
|
domainUserRegion=domainUserRegion+";"+Constants.USERREGION_DOMAIN_STR+"="+domainStr;
|
||||||
HttpUrlCfg cfg = new HttpUrlCfg();
|
HttpUrlCfg cfg = new HttpUrlCfg();
|
||||||
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
||||||
cfg.setTableName(HttpUrlCfg.getTablename());
|
cfg.setTableName(HttpUrlCfg.getTablename());
|
||||||
|
|||||||
@@ -1047,7 +1047,7 @@ tunnel_desc=Tunnel Behavior Description
|
|||||||
call_external_procedures_failed=Call external procedures failed
|
call_external_procedures_failed=Call external procedures failed
|
||||||
is_hex=Is HEX
|
is_hex=Is HEX
|
||||||
is_case_insenstive=Is Case-sensitive
|
is_case_insenstive=Is Case-sensitive
|
||||||
case_senstive=Case-senstive
|
case_senstive=Case-sensitive
|
||||||
case_insenstive=Case-insensitive
|
case_insenstive=Case-insensitive
|
||||||
hex=Hex
|
hex=Hex
|
||||||
not_hex=Not HEX
|
not_hex=Not HEX
|
||||||
|
|||||||
@@ -17,10 +17,6 @@ $(function(){
|
|||||||
$("#privateKeyFileI").on('change', function() {
|
$("#privateKeyFileI").on('change', function() {
|
||||||
$("#privateKeyFileInfo").val($("#privateKeyFileI").val());
|
$("#privateKeyFileInfo").val($("#privateKeyFileI").val());
|
||||||
});
|
});
|
||||||
switchCfgType();
|
|
||||||
$("input[name=cfgType]").on('change', function() {
|
|
||||||
switchCfgType();
|
|
||||||
});
|
|
||||||
switchKeyringType();
|
switchKeyringType();
|
||||||
$("select[name=keyringType]").on('change', function() {
|
$("select[name=keyringType]").on('change', function() {
|
||||||
switchKeyringType();
|
switchKeyringType();
|
||||||
@@ -143,16 +139,6 @@ var switchKeyringType=function(){
|
|||||||
<div for="action"></div>
|
<div for="action"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="control-label col-md-3"><spring:message code="cfgType"/></label>
|
|
||||||
<div class="col-md-6">
|
|
||||||
<input type="radio" name="cfgType" value="ip" <c:if test="${_cfg.cfgType == 'ip' || empty _cfg.cfgType}">checked="checked"</c:if>> <spring:message code="ip"/> <spring:message code="monitor"/>
|
|
||||||
<input type="radio" name="cfgType" value="domain" <c:if test="${_cfg.cfgType == 'domain' }">checked="checked"</c:if>><spring:message code="domain"/> <spring:message code="monitor"/>
|
|
||||||
</div>
|
|
||||||
<div for="action"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
|||||||
@@ -255,7 +255,6 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
||||||
<%-- <th><spring:message code="seq"/></th> --%>
|
<%-- <th><spring:message code="seq"/></th> --%>
|
||||||
<th><spring:message code="cfg_type"/></th>
|
|
||||||
<th><spring:message code="keyring_name"/></th>
|
<th><spring:message code="keyring_name"/></th>
|
||||||
<th><spring:message code="keyring_type"/></th>
|
<th><spring:message code="keyring_type"/></th>
|
||||||
<th><spring:message code="private_key_file"/></th>
|
<th><spring:message code="private_key_file"/></th>
|
||||||
@@ -287,10 +286,6 @@
|
|||||||
<td>
|
<td>
|
||||||
<input type="checkbox" class="i-checks" serviceId="${cfg.serviceId}" id="${cfg.cfgId}" value="${cfg.isAudit}">
|
<input type="checkbox" class="i-checks" serviceId="${cfg.serviceId}" id="${cfg.cfgId}" value="${cfg.isAudit}">
|
||||||
</td>
|
</td>
|
||||||
<td>
|
|
||||||
<c:if test="${cfg.cfgType eq 'ip'}"><spring:message code="ip"/> <spring:message code="monitor"/> </c:if>
|
|
||||||
<c:if test="${cfg.cfgType eq 'domain'}"><spring:message code="domain"/> <spring:message code="monitor"/></c:if>
|
|
||||||
</td>
|
|
||||||
<td>${cfg.cfgDesc }</td>
|
<td>${cfg.cfgDesc }</td>
|
||||||
<td>
|
<td>
|
||||||
<c:forEach items="${fns:getDictList('INTERCEPT_CERTIFICATE_TYPE') }" var="dict">
|
<c:forEach items="${fns:getDictList('INTERCEPT_CERTIFICATE_TYPE') }" var="dict">
|
||||||
|
|||||||
Reference in New Issue
Block a user