Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
KeRan213539 committed Jan 14, 2020
1 parent 89760cd commit 58db0e2
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ public void getConfig(HttpServletRequest request, HttpServletResponse response,
String tenant,
@RequestParam(value = "tag", required = false) String tag)
throws IOException, ServletException, NacosException {
if (NAMESPACE_PUBLIC_KEY.equalsIgnoreCase(tenant)) {
tenant = "";
}
// check params
ParamUtils.checkParam(dataId, group, "datumId", "content");
ParamUtils.checkParam(tag);
Expand Down Expand Up @@ -428,6 +431,9 @@ public ResponseEntity<byte[]> exportConfig(@RequestParam(value = "dataId", requi
defaultValue = StringUtils.EMPTY) String tenant,
@RequestParam(value = "ids", required = false) List<Long> ids) {
ids.removeAll(Collections.singleton(null));
if (NAMESPACE_PUBLIC_KEY.equalsIgnoreCase(tenant)) {
tenant = "";
}
List<ConfigAllInfo> dataList = persistService.findAllConfigInfo4Export(dataId, group, tenant, appName, ids);
List<ZipUtils.ZipItem> zipItemList = new ArrayList<>();
StringBuilder metaData = null;
Expand Down

0 comments on commit 58db0e2

Please sign in to comment.