You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Ramachandran (Jira)" <ji...@apache.org> on 2022/09/21 16:29:00 UTC
[jira] [Assigned] (RANGER-3847) [Ranger] : Http status & Error message is not correct for /xaudit/trx_log
[ https://issues.apache.org/jira/browse/RANGER-3847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ramachandran reassigned RANGER-3847:
------------------------------------
Assignee: Ramachandran
> [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
>
> [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)