Skip to content

Commit

Permalink
[ISSUE #12180] 修复克隆和导入配置没有记录操作人 (#12181)
Browse files Browse the repository at this point in the history
  • Loading branch information
misakacoder authored Jun 12, 2024
1 parent 7590a4e commit 833e6ca
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,9 @@ public RestResult<Map<String, Object>> importAndPublishConfig(HttpServletRequest
failedData.put("succCount", 0);
return RestResultUtils.buildResult(ResultCodeEnum.NAMESPACE_NOT_EXIST, failedData);
}
if (StringUtils.isBlank(srcUser)) {
srcUser = RequestUtil.getSrcUserName(request);
}
List<ConfigAllInfo> configInfoList = new ArrayList<>();
List<Map<String, String>> unrecognizedList = new ArrayList<>();
try {
Expand Down Expand Up @@ -900,7 +903,9 @@ public RestResult<Map<String, Object>> cloneConfig(HttpServletRequest request,
ci.getEncryptedDataKey() == null ? StringUtils.EMPTY : ci.getEncryptedDataKey());
configInfoList4Clone.add(ci4save);
}

if (StringUtils.isBlank(srcUser)) {
srcUser = RequestUtil.getSrcUserName(request);
}
final String srcIp = RequestUtil.getRemoteIp(request);
String requestIpApp = RequestUtil.getAppName(request);
final Timestamp time = TimeUtils.getCurrentTime();
Expand Down

0 comments on commit 833e6ca

Please sign in to comment.