chia7712 commented on code in PR #938:
URL: https://github.com/apache/yunikorn-core/pull/938#discussion_r1709963955


##########
pkg/webservice/handlers.go:
##########
@@ -898,6 +898,56 @@ func getPartitionRules(w http.ResponseWriter, r 
*http.Request) {
        }
 }
 
+func getQueueApplicationsByState(w http.ResponseWriter, r *http.Request) {
+       writeHeaders(w)
+       vars := httprouter.ParamsFromContext(r.Context())
+       if vars == nil {
+               buildJSONErrorResponse(w, MissingParamsName, 
http.StatusBadRequest)
+               return
+       }
+
+       partition := vars.ByName("partition")
+       queueName := vars.ByName("queue")

Review Comment:
   Could you please handle the unescaped queue name? see following link for 
example
   
   
https://github.com/apache/yunikorn-core/blob/master/pkg/webservice/handlers.go#L679



-- 
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