[
https://issues.apache.org/jira/browse/AMBARI-3706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13817304#comment-13817304
]
Nate Cole commented on AMBARI-3706:
-----------------------------------
+1, looks good.
> Absent cluster name validation on query for Requests
> ----------------------------------------------------
>
> Key: AMBARI-3706
> URL: https://issues.apache.org/jira/browse/AMBARI-3706
> Project: Ambari
> Issue Type: Bug
> Reporter: Tom Beerbower
> Assignee: Tom Beerbower
> Attachments: AMBARI-3706.patch
>
>
> On following request:
> /api/v1/clusters/<any-value>/requests?fields=Requests
> UI recieve succesfull response with invalid cluster name value, instead of
> error:
> {noformat}
> {
> "href" :
> "http://192.168.56.101:8080/api/v1/clusters/<any-value>/requests?fields=Requests",
> "items" : [
> {
> "href" :
> "http://192.168.56.101:8080/api/v1/clusters/<any-value>/requests/1",
> "Requests" : {
> "aborted_task_count" : 0,
> "cluster_name" : "<any-value>",
> "completed_task_count" : 27,
> "failed_task_count" : 0,
> "id" : 1,
> "progress_percent" : 100.0,
> "queued_task_count" : 0,
> "request_context" : "Install Services",
> "request_status" : "COMPLETED",
> "task_count" : 27,
> "timed_out_task_count" : 0
> }
> }
> }
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.1#6144)