incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Speidel (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-1386) Cluster id is ignored for all 'Request' resource queries
Date Tue, 12 Feb 2013 17:13:12 GMT
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

Mime
View raw message