-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74791/
-----------------------------------------------------------

Review request for ranger, Mehul Parikh and Pradeep Agrawal.


Bugs: RANGER-4606
    https://issues.apache.org/jira/browse/RANGER-4606


Repository: ranger


Description
-------

When the number of services in Ranger admin is greater than 200,
the /public/api/policy/count policy returns the count as 200.
The API should ideally return the actual number of services present in Ranger 
admin


Diffs
-----

  security-admin/src/main/java/org/apache/ranger/rest/AssetREST.java abc324dd1 


Diff: https://reviews.apache.org/r/74791/diff/1/


Testing
-------

Applied the patch on a cluster and tested the following scenarios :-
1. Fetched the count using the API when the number of services is less than 20, 
and then ensured that the proper count is returned (i.e count is returned only 
for legacy services).
2. Created 250 Hdfs service repos, and fetched the count using the API, and 
ensured that the proper count is returned.


Thanks,

Abhishek Patil

Reply via email to