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

Madhan Neethiraj resolved RANGER-3847.
--------------------------------------
    Fix Version/s: 2.4.0
       Resolution: Fixed

[~ramackri] - thanks for the patch. It is committed in master and ranger-2.4 
branches.

{noformat}
commit cb721160e86193f5cc3b03744e41e6d32bf43328 (HEAD -> master, origin/master, 
origin/HEAD)
Author: Ramachandran Krishnan <[email protected]>
Date:   Wed Sep 21 21:51:11 2022 +0530

    RANGER-3847: REST APIs error handling updated to return appropriate HTTP 
status for Json errors

    Signed-off-by: Madhan Neethiraj <[email protected]>
{noformat}

{noformat}
commit a307fc7bcd02b2bf8e2a946cd60d1627b95f4c15 (HEAD -> ranger-2.4, 
origin/ranger-2.4)
Author: Ramachandran Krishnan <[email protected]>
Date:   Wed Sep 21 21:51:11 2022 +0530

    RANGER-3847: REST APIs error handling updated to return appropriate HTTP 
status for Json errors

    Signed-off-by: Madhan Neethiraj <[email protected]>
    (cherry picked from commit cb721160e86193f5cc3b03744e41e6d32bf43328)
{noformat}

> [Ranger] : Http status & Error message is not correct for /xaudit/trx_log
> -------------------------------------------------------------------------
>
>                 Key: RANGER-3847
>                 URL: https://issues.apache.org/jira/browse/RANGER-3847
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>            Reporter: Anupam Rai
>            Assignee: Ramachandran
>            Priority: Minor
>             Fix For: 3.0.0, 2.4.0
>
>         Attachments: 
> 0001-RANGER-3847-Http-status-Error-message-is-not-correct.patch
>
>
> [Ranger] : Http status & Error message is not correct for /xaudit/trx_log
> Request with bad request : Passing String values
> {code:java}
> curl --location --request POST 'https://---------/service/xaudit/trx_log' \
> --header 'Authorization: Basic XXXXX==' \
> --header 'Accept: application/json' \
> --header 'Content-Type: application/json' \
> --data-raw '{
>   "objectClassType" : "abcdef",
>   "objectId" : "abcdef"
> }' {code}
> Response : 404 Not Found
> Request with proper request : Passing int values
> {code:java}
> curl --location --request POST 
> 'https://----------------/service/xaudit/trx_log' \
> --header 'Authorization: Basic XXXX=' \
> --header 'Accept: application/json' \
> --header 'Content-Type: application/json' \
> --data-raw '{
>   "objectClassType" : "123456",
>   "objectId" : "1234567"
> }' {code}
> Response : ok 
>  



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

Reply via email to