You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Anupam Rai (Jira)" <ji...@apache.org> on 2022/09/15 06:53:00 UTC

[jira] [Updated] (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 ]

Anupam Rai updated RANGER-3847:
-------------------------------
    Description: 
[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 

 

  was:
[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://quasar-daqgbo-1.quasar-daqgbo.root.hwx.site:6182/service/xaudit/trx_log' \
--header 'Authorization: Basic aHJ0X3FhOlBhc3N3b3JkQDEyMw==' \
--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://quasar-daqgbo-1.quasar-daqgbo.root.hwx.site:6182/service/xaudit/trx_log' \
--header 'Authorization: Basic aHJ0X3FhOlBhc3N3b3JkQDEyMw==' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
  "objectClassType" : "123456",
  "objectId" : "1234567"
}' {code}
Response : ok 

 


> [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
>            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)