Skip to content

Commit

Permalink
[fix] Solve the problem that request log section publishConfig and in…
Browse files Browse the repository at this point in the history
…valid because the section parameter is inconsistent with the Controller parameter (alibaba#8721)
  • Loading branch information
lyf712 authored Jul 19, 2022
1 parent f13016a commit 014161a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ public ConfigController(ConfigServletInner inner, PersistService persistService,
*/
@PostMapping
@Secured(action = ActionTypes.WRITE, signType = SignType.CONFIG)
public Boolean publishConfig(HttpServletRequest request, @RequestParam(value = "dataId") String dataId,
public Boolean publishConfig(HttpServletRequest request, HttpServletResponse response,
@RequestParam(value = "dataId") String dataId,
@RequestParam(value = "group") String group,
@RequestParam(value = "tenant", required = false, defaultValue = StringUtils.EMPTY) String tenant,
@RequestParam(value = "content") String content, @RequestParam(value = "tag", required = false) String tag,
Expand Down Expand Up @@ -256,7 +257,7 @@ public ConfigAllInfo detailConfigInfo(@RequestParam("dataId") String dataId, @Re
*/
@DeleteMapping
@Secured(action = ActionTypes.WRITE, signType = SignType.CONFIG)
public Boolean deleteConfig(HttpServletRequest request, @RequestParam("dataId") String dataId,
public Boolean deleteConfig(HttpServletRequest request, HttpServletResponse response,@RequestParam("dataId") String dataId,
@RequestParam("group") String group,
@RequestParam(value = "tenant", required = false, defaultValue = StringUtils.EMPTY) String tenant,
@RequestParam(value = "tag", required = false) String tag) throws NacosException {
Expand Down

0 comments on commit 014161a

Please sign in to comment.