You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "John Speidel (JIRA)" <ji...@apache.org> on 2013/02/12 18:13:12 UTC

[jira] [Created] (AMBARI-1386) Cluster id is ignored for all 'Request' resource queries

John Speidel created AMBARI-1386:
------------------------------------

             Summary: Cluster id is ignored for all 'Request' resource queries
                 Key: AMBARI-1386
                 URL: https://issues.apache.org/jira/browse/AMBARI-1386
             Project: Ambari
          Issue Type: Sub-task
            Reporter: John Speidel
            Assignee: John Speidel
             Fix For: 1.3.0


The "requests' resource is contained in the 'cluster' resource.
http://localhost:8080/api/v1/clusters/c1/requests/1/

Because the cluster resource contains the request resource, the above query should only return request '1' if it belongs to the specified cluster. But, cluster id is completely ignored in the query and the request will be returned regardless of cluster id. Therefore the request is returned even if a non-existent cluster is specified such as:

http://localhost:8080/api/v1/clusters/DOESNTEXIST/requests/1/

The same goes for getting a collection of requests. The same collection is returned regardless of the cluster that is specified.

These queries return the same data:
localhost:8080/api/v1/clusters/c1/requests
localhost:8080/api/v1/clusters/DOESNTEXIST/requests


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira