[ 
https://issues.apache.org/jira/browse/RANGER-4057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17679974#comment-17679974
 ] 

Ramachandran commented on RANGER-4057:
--------------------------------------

The same issue is present for the 

[Ranger]:/plugins/policies/cache/reset API give 200 response for invalid service

Curl Request :
{code:comment}
curl -s -L -X GET 
"https://***********plugins/policies/cache/reset?serviceName=aaa"; -H 
"Authorization: Basic *************==" {code}
Response :
200 Status with false

Same for the response for any service which we pass.

Expected: If service is existing, the response should be  200 with a proper 
message,
Else service is non -existing response should be 400 with an error message 

cc >> [~madhan] 

 

> [Ranger] /tags/tags/cache/reset api give 200 response for invalid service
> -------------------------------------------------------------------------
>
>                 Key: RANGER-4057
>                 URL: https://issues.apache.org/jira/browse/RANGER-4057
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>            Reporter: Anupam Rai
>            Assignee: Ramachandran
>            Priority: Major
>
> [Ranger] /tags/tags/cache/reset api give 200 response for invalid service
> Curl Request :
> {code:java}
> curl -s -L -X GET "https://***********/service/tags/tags/cache/reset?abba"; -H 
> "Authorization: Basic *************==" {code}
> Response :
> 200 Status with false
> Same for response for any service which we pass .
> Expected : If service is existing , response should be  200 with proper 
> message ,
> Else service is non -existing response should be 400 with error message 
> Thanks



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to