You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2021/07/07 09:26:00 UTC

[GitHub] [servicecomb-kie] Sphairis opened a new pull request #189: add override field verification

Sphairis opened a new pull request #189:
URL: https://github.com/apache/servicecomb-kie/pull/189


   


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [servicecomb-kie] little-cui commented on a change in pull request #189: add override field verification

Posted by GitBox <gi...@apache.org>.
little-cui commented on a change in pull request #189:
URL: https://github.com/apache/servicecomb-kie/pull/189#discussion_r665205686



##########
File path: server/resource/v1/kv_resource.go
##########
@@ -47,6 +47,10 @@ func (r *KVResource) Upload(rctx *restful.Context) {
 		WriteErrResponse(rctx, config.ErrInvalidParams, fmt.Sprintf(FmtReadRequestError, err))
 		return
 	}
+	if rctx.ReadQueryParameter(common.QueryParamOverride) == "" {

Review comment:
       在readRequest前返回




-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [servicecomb-kie] little-cui commented on a change in pull request #189: add override field verification

Posted by GitBox <gi...@apache.org>.
little-cui commented on a change in pull request #189:
URL: https://github.com/apache/servicecomb-kie/pull/189#discussion_r665210834



##########
File path: server/resource/v1/kv_resource.go
##########
@@ -41,6 +41,10 @@ type KVResource struct {
 
 //Upload upload kvs
 func (r *KVResource) Upload(rctx *restful.Context) {
+	if rctx.ReadQueryParameter(common.QueryParamOverride) == "" {
+		WriteErrResponse(rctx, config.ErrInvalidParams, "label should not be empty")

Review comment:
       描述不对,可以是Query parameter 'override' is required 




-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [servicecomb-kie] Sphairis commented on a change in pull request #189: add override field verification

Posted by GitBox <gi...@apache.org>.
Sphairis commented on a change in pull request #189:
URL: https://github.com/apache/servicecomb-kie/pull/189#discussion_r665211624



##########
File path: server/resource/v1/kv_resource.go
##########
@@ -41,6 +41,10 @@ type KVResource struct {
 
 //Upload upload kvs
 func (r *KVResource) Upload(rctx *restful.Context) {
+	if rctx.ReadQueryParameter(common.QueryParamOverride) == "" {
+		WriteErrResponse(rctx, config.ErrInvalidParams, "label should not be empty")

Review comment:
       已修改
   




-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [servicecomb-kie] Sphairis commented on a change in pull request #189: add override field verification

Posted by GitBox <gi...@apache.org>.
Sphairis commented on a change in pull request #189:
URL: https://github.com/apache/servicecomb-kie/pull/189#discussion_r665206683



##########
File path: server/resource/v1/kv_resource.go
##########
@@ -47,6 +47,10 @@ func (r *KVResource) Upload(rctx *restful.Context) {
 		WriteErrResponse(rctx, config.ErrInvalidParams, fmt.Sprintf(FmtReadRequestError, err))
 		return
 	}
+	if rctx.ReadQueryParameter(common.QueryParamOverride) == "" {

Review comment:
       已修改




-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [servicecomb-kie] little-cui merged pull request #189: add override field verification

Posted by GitBox <gi...@apache.org>.
little-cui merged pull request #189:
URL: https://github.com/apache/servicecomb-kie/pull/189


   


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org