Subhrat Chaudhary created RANGER-4517:
-----------------------------------------
Summary: Sort param sortType not considered if sortBy not passed
Key: RANGER-4517
URL: https://issues.apache.org/jira/browse/RANGER-4517
Project: Ranger
Issue Type: Sub-task
Components: admin
Reporter: Subhrat Chaudhary
The sort param sortType is not considered if sortBy is not passed in the
query-param. Please consider following case:
* The GET API /service/gds/dataset has default sortType=asc and
sortBy=datasetId.
* Please find the query-param input and actual responses received:
||Request - sortBy||Request - sortType||Response - sortBy||Response - sortType||
|Not passed|Not passed|datasetId|asc|
|datasetName|Not passed|datasetName|asc|
|datasetName|desc|datasetName|desc|
|{color:#FF0000}Not
passed{color}|{color:#FF0000}desc{color}|{color:#FF0000}datasetId{color}|{color:#FF0000}asc{color}|
|datasetId|desc|datasetId|desc|
As noticed above if the sortBy is not passed in the request query-param
sortType param is not considered.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)