You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Rakesh Gupta (Jira)" <ji...@apache.org> on 2025/01/06 06:42:00 UTC

[jira] [Resolved] (RANGER-5089) Getting 204 instead of 404 status code when invalid service name is passed

     [ https://issues.apache.org/jira/browse/RANGER-5089?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rakesh Gupta resolved RANGER-5089.
----------------------------------
    Resolution: Fixed

> Getting 204 instead of 404 status code when invalid service name is passed
> --------------------------------------------------------------------------
>
>                 Key: RANGER-5089
>                 URL: https://issues.apache.org/jira/browse/RANGER-5089
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>    Affects Versions: 3.0.0, 2.6.0
>            Reporter: Rakesh Gupta
>            Assignee: Rakesh Gupta
>            Priority: Major
>             Fix For: 3.0.0, 2.6.0
>
>
> The API /service/xusers/secure/download/\{invalid_service} returns a 204 No Content status for invalid service names, instead of the expected 404 Not Found.
> *CURRENT BEHAVIOR:*
> The API /service/xusers/secure/download/\{invalid_service} returns a 204 No Content status even when the service name is invalid or does not exist.
> *EXPECTED BEHAVIOR:*
> The API should return a 404 Not Found status when the provided service name is invalid or does not exist.



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