AlinsRan commented on code in PR #12603:
URL: https://github.com/apache/apisix/pull/12603#discussion_r2358340110


##########
apisix/admin/resource.lua:
##########
@@ -123,7 +124,12 @@ function _M:check_conf(id, conf, need_id, typ, allow_time)
         core.log.info("schema: ", core.json.delay_encode(self.schema))
     end
 
-    local ok, err = self.checker(id, conf, need_id, self.schema, {secret_type 
= typ})
+    local conf_for_check = tbl_deepcopy(conf)
+    local ok, err = self.checker(id, conf_for_check, need_id, self.schema, 
{secret_type = typ})

Review Comment:
   In terms of debugging purposes only, this PR should not be blocked, and the 
default value can be confirmed through the version of apisix.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to